App.config 5.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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%8p %m%n" />
  16. <param name="Header" value="&#xA;----------------------开启RT--------------------------&#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. <!--1是kepler2300,2是Kepler2200-->
  30. <add name="ConfigType" connectionString="2"/>
  31. </connectionStrings>
  32. <system.serviceModel>
  33. <!--<diagnostics>
  34. <messageLogging logEntireMessage="true" logMalformedMessages="false" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="false" maxMessagesToLog="3000" maxSizeOfMessageToLog="2000" />
  35. </diagnostics>-->
  36. <bindings>
  37. <netTcpBinding>
  38. <binding name="Aitex_netTcpBinding" maxReceivedMessageSize="102400000" receiveTimeout="00:10:00">
  39. <readerQuotas maxDepth="32" maxStringContentLength="1048576" maxArrayLength="163840000" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
  40. <security mode="None">
  41. <transport clientCredentialType="None" />
  42. <message clientCredentialType="None" />
  43. </security>
  44. </binding>
  45. </netTcpBinding>
  46. </bindings>
  47. <services>
  48. <service behaviorConfiguration="BasicBehavior" name="Aitex.Core.Account.AccountService">
  49. <endpoint address="net.tcp://localhost:8775/AccountService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.Account.IAccountService" />
  50. </service>
  51. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.OperationCenter.InvokeService">
  52. <endpoint address="net.tcp://localhost:8751/InvokeService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.OperationCenter.IInvokeService" />
  53. </service>
  54. <service behaviorConfiguration="BasicBehavior" name="Aitex.Core.WCF.EventService">
  55. <endpoint address="net.tcp://localhost:8752/EventService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.WCF.Interface.IEventService" />
  56. </service>
  57. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.DataCenter.QueryDataService">
  58. <endpoint address="net.tcp://localhost:8771/QueryDataService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.DataCenter.IQueryDataService" />
  59. </service>
  60. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.RecipeCenter.RecipeService">
  61. <endpoint address="net.tcp://localhost:8773/RecipeService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.RecipeCenter.IRecipeService" />
  62. </service>
  63. </services>
  64. <client>
  65. <endpoint address="net.tcp://localhost:9002/PMService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="ClusterInterface.IPmService" name="Client_IPECVDService" />
  66. <endpoint address="net.tcp://localhost:9004/PMService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="ClusterInterface.IPmService" name="Client_IIBEService" />
  67. <endpoint address="net.tcp://localhost:9006/PMService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="ClusterInterface.IPmService" name="Client_IICPService" />
  68. <endpoint address="net.tcp://192.168.10.20:5771/EPDService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="EPInterface.IEPDService" name="Client_IEPDService"/>
  69. <endpoint address="net.tcp://192.168.10.20:5773/EPDCallbackService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="EPInterface.IEPDCallbackService" name="Client_IEPDCallbackService" />
  70. </client>
  71. <behaviors>
  72. <serviceBehaviors>
  73. <behavior name="BasicBehavior">
  74. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  75. <serviceMetadata httpGetEnabled="false" />
  76. <serviceDebug includeExceptionDetailInFaults="true" />
  77. <serviceAuthorization impersonateCallerForAllOperations="false" />
  78. </behavior>
  79. <behavior name="SingleModeBehavior">
  80. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  81. <serviceMetadata httpGetEnabled="false" />
  82. <serviceDebug includeExceptionDetailInFaults="true" />
  83. <serviceAuthorization impersonateCallerForAllOperations="false" />
  84. </behavior>
  85. </serviceBehaviors>
  86. <endpointBehaviors>
  87. <behavior name="EndpointBehavior">
  88. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  89. </behavior>
  90. </endpointBehaviors>
  91. </behaviors>
  92. </system.serviceModel>
  93. </configuration>