Triton160RT.exe.config 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?xml version="1.0"?>
  2. <configuration>
  3. <configSections>
  4. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821"/>
  5. </configSections>
  6. <startup useLegacyV2RuntimeActivationPolicy="true">
  7. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
  8. </startup>
  9. <connectionStrings>
  10. <add name="PostgreSQL" connectionString="Server=localhost;Port=5432;User Id=postgres;Password=123456;Database=postgres;Enlist=true;Preload Reader = true;"/>
  11. </connectionStrings>
  12. <appSettings>
  13. <add key="IsSimulationMode" value="false"/>
  14. <add key="Su" value="21232f297a57a5a743894a0e4a801fc3"/>
  15. </appSettings>
  16. <log4net>
  17. <appender name="fileAppender" type="log4net.Appender.RollingFileAppender">
  18. <param name="File" value="Logs\log"/>
  19. <param name="AppendToFile" value="true"/>
  20. <param name="RollingStyle" value="Date"/>
  21. <param name="StaticLogFileName" value="false"/>
  22. <datePattern value="yyyyMMdd'.txt'"/>
  23. <layout type="log4net.Layout.PatternLayout,log4net">
  24. <param name="ConversionPattern" value="[%t] %m%n"/>
  25. <param name="Header" value="&lt;==
  26. "/>
  27. <param name="Footer" value="
  28. ==&gt;
  29. "/>
  30. </layout>
  31. </appender>
  32. <root>
  33. <level value="ALL"/>
  34. <appender-ref ref="fileAppender"/>
  35. </root>
  36. </log4net>
  37. <system.diagnostics>
  38. <sources>
  39. <source name="System.ServiceModel" switchValue="Information,ActivityTracing" propagateActivity="true">
  40. <listeners>
  41. <add name="xml"/>
  42. </listeners>
  43. </source>
  44. <source name="System.ServiceModel.MessageLogging">
  45. <listeners>
  46. <add name="xml"/>
  47. </listeners>
  48. </source>
  49. </sources>
  50. <sharedListeners>
  51. <add initializeData="C:\logs\TracingAndLogging-service.svclog" type="System.Diagnostics.XmlWriterTraceListener" name="xml"/>
  52. </sharedListeners>
  53. <trace autoflush="true"/>
  54. </system.diagnostics>
  55. <!--<system.diagnostics>
  56. <sources>
  57. <source name="System.ServiceModel.MessageLogging">
  58. <listeners>
  59. <add name="messages"
  60. type="System.Diagnostics.XmlWriterTraceListener"
  61. initializeData="c:\logs\mitrt.svclog" />
  62. </listeners>
  63. </source>
  64. </sources>
  65. </system.diagnostics>-->
  66. <system.serviceModel>
  67. <diagnostics>
  68. <messageLogging logEntireMessage="true" logMalformedMessages="false" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="false" maxMessagesToLog="3000" maxSizeOfMessageToLog="2000"/>
  69. </diagnostics>
  70. <bindings>
  71. <netTcpBinding>
  72. <binding name="Aitex_netTcpBinding" maxReceivedMessageSize="102400000" receiveTimeout="infinite">
  73. <readerQuotas maxDepth="32" maxStringContentLength="1048576" maxArrayLength="163840000" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
  74. <security mode="None">
  75. <transport clientCredentialType="None"/>
  76. <message clientCredentialType="None"/>
  77. </security>
  78. </binding>
  79. </netTcpBinding>
  80. </bindings>
  81. <services>
  82. <service behaviorConfiguration="BasicBehavior" name="Aitex.Core.Account.AccountService">
  83. <endpoint address="net.tcp://localhost:8775/AccountService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.Account.IAccountService"/>
  84. </service>
  85. <service behaviorConfiguration="BasicBehavior" name="Aitex.Triton160.RT.WCF.InvokeService">
  86. <endpoint address="net.tcp://localhost:8751/InvokeService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Triton160.Common.Interface.IInvokeService"/>
  87. </service>
  88. <service behaviorConfiguration="BasicBehavior" name="Aitex.Core.WCF.EventService">
  89. <endpoint address="net.tcp://localhost:8752/EventService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.WCF.Interface.IEventService"/>
  90. </service>
  91. <service behaviorConfiguration="BasicBehavior" name="Aitex.Triton160.RT.WCF.QueryDataService">
  92. <endpoint address="net.tcp://localhost:8771/QueryDataService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Triton160.Common.Interface.IQueryDataService"/>
  93. </service>
  94. <service behaviorConfiguration="BasicBehavior" name="Aitex.Triton160.RT.WCF.RecipeService">
  95. <endpoint address="net.tcp://localhost:8773/RecipeService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Triton160.Common.Interface.IRecipeService"/>
  96. </service>
  97. </services>
  98. <behaviors>
  99. <serviceBehaviors>
  100. <behavior name="BasicBehavior">
  101. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  102. <serviceMetadata httpGetEnabled="false"/>
  103. <serviceDebug includeExceptionDetailInFaults="true"/>
  104. <serviceAuthorization impersonateCallerForAllOperations="false"/>
  105. </behavior>
  106. <behavior name="SingleModeBehavior">
  107. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  108. <serviceMetadata httpGetEnabled="false"/>
  109. <serviceDebug includeExceptionDetailInFaults="true"/>
  110. <serviceAuthorization impersonateCallerForAllOperations="false"/>
  111. </behavior>
  112. </serviceBehaviors>
  113. <endpointBehaviors>
  114. <behavior name="EndpointBehavior">
  115. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  116. </behavior>
  117. </endpointBehaviors>
  118. </behaviors>
  119. </system.serviceModel>
  120. </configuration>