App.config 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net " />
  5. </configSections>
  6. <log4net>
  7. <appender name="fileAppender" type="log4net.Appender.RollingFileAppender">
  8. <param name="Encoding" value="utf-8" />
  9. <param name="File" value="Logs/log" />
  10. <param name="AppendToFile" value="true" />
  11. <param name="RollingStyle" value="Date" />
  12. <param name="StaticLogFileName" value="false" />
  13. <datePattern value="yyyyMMdd'.txt'" />
  14. <layout type="log4net.Layout.PatternLayout,log4net">
  15. <param name="ConversionPattern" value="%d %-5p %m%n" />
  16. <param name="Header" value="&#xA;----------------------开启Venus--------------------------&#xA;" />
  17. </layout>
  18. </appender>
  19. <root>
  20. <level value="ALL" />
  21. <appender-ref ref="fileAppender" />
  22. </root>
  23. </log4net>
  24. <startup>
  25. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
  26. </startup>
  27. <connectionStrings>
  28. <add name="PostgreSQL" connectionString="Server=localhost;Port=5432;User Id=postgres;Password=123456;Database=postgres;Enlist=true;Preload Reader = true;" />
  29. </connectionStrings>
  30. <system.serviceModel>
  31. <!--<diagnostics>
  32. <messageLogging logEntireMessage="true" logMalformedMessages="false" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="false" maxMessagesToLog="3000" maxSizeOfMessageToLog="2000" />
  33. </diagnostics>-->
  34. <bindings>
  35. <netTcpBinding>
  36. <binding name="Aitex_netTcpBinding" maxReceivedMessageSize="102400000" receiveTimeout="00:10:00">
  37. <readerQuotas maxDepth="32" maxStringContentLength="1048576" maxArrayLength="163840000" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
  38. <security mode="None">
  39. <transport clientCredentialType="None" />
  40. <message clientCredentialType="None" />
  41. </security>
  42. </binding>
  43. </netTcpBinding>
  44. </bindings>
  45. <services>
  46. <service behaviorConfiguration="BasicBehavior" name="Aitex.Core.Account.AccountService">
  47. <endpoint address="net.tcp://localhost:8775/AccountService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.Account.IAccountService" />
  48. </service>
  49. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.OperationCenter.InvokeService">
  50. <endpoint address="net.tcp://localhost:8751/InvokeService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.OperationCenter.IInvokeService" />
  51. </service>
  52. <service behaviorConfiguration="BasicBehavior" name="Aitex.Core.WCF.EventService">
  53. <endpoint address="net.tcp://localhost:8752/EventService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.WCF.Interface.IEventService" />
  54. </service>
  55. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.DataCenter.QueryDataService">
  56. <endpoint address="net.tcp://localhost:8771/QueryDataService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.DataCenter.IQueryDataService" />
  57. </service>
  58. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.RecipeCenter.RecipeService">
  59. <endpoint address="net.tcp://localhost:8773/RecipeService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.RecipeCenter.IRecipeService" />
  60. </service>
  61. </services>
  62. <client>
  63. <endpoint address="net.tcp://localhost:9002/PMService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="ClusterInterface.IPmService" name="Client_IPECVDService" />
  64. <endpoint address="net.tcp://localhost:9004/PMService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="ClusterInterface.IPmService" name="Client_IIBEService" />
  65. <endpoint address="net.tcp://localhost:9006/PMService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="ClusterInterface.IPmService" name="Client_IICPService" />
  66. </client>
  67. <behaviors>
  68. <serviceBehaviors>
  69. <behavior name="BasicBehavior">
  70. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  71. <serviceMetadata httpGetEnabled="false" />
  72. <serviceDebug includeExceptionDetailInFaults="true" />
  73. <serviceAuthorization impersonateCallerForAllOperations="false" />
  74. </behavior>
  75. <behavior name="SingleModeBehavior">
  76. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  77. <serviceMetadata httpGetEnabled="false" />
  78. <serviceDebug includeExceptionDetailInFaults="true" />
  79. <serviceAuthorization impersonateCallerForAllOperations="false" />
  80. </behavior>
  81. </serviceBehaviors>
  82. <endpointBehaviors>
  83. <behavior name="EndpointBehavior">
  84. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  85. </behavior>
  86. </endpointBehaviors>
  87. </behaviors>
  88. </system.serviceModel>
  89. <runtime>
  90. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  91. <dependentAssembly>
  92. <assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  93. <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
  94. </dependentAssembly>
  95. <dependentAssembly>
  96. <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
  97. <bindingRedirect oldVersion="0.0.0.0-2.0.8.0" newVersion="2.0.8.0" />
  98. </dependentAssembly>
  99. <dependentAssembly>
  100. <assemblyIdentity name="SciChart.Charting" publicKeyToken="b55dd9efe817e823" culture="neutral" />
  101. <bindingRedirect oldVersion="0.0.0.0-6.0.1.12982" newVersion="6.0.1.12982" />
  102. </dependentAssembly>
  103. <dependentAssembly>
  104. <assemblyIdentity name="SciChart.Data" publicKeyToken="b55dd9efe817e823" culture="neutral" />
  105. <bindingRedirect oldVersion="0.0.0.0-6.0.1.12982" newVersion="6.0.1.12982" />
  106. </dependentAssembly>
  107. <dependentAssembly>
  108. <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  109. <bindingRedirect oldVersion="0.0.0.0-4.0.4.0" newVersion="4.0.4.0" />
  110. </dependentAssembly>
  111. <dependentAssembly>
  112. <assemblyIdentity name="Npgsql" publicKeyToken="5d8b90d52f46fda7" culture="neutral" />
  113. <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
  114. </dependentAssembly>
  115. </assemblyBinding>
  116. </runtime>
  117. </configuration>