App.config 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net " />
  5. </configSections>
  6. <startup useLegacyV2RuntimeActivationPolicy="true">
  7. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
  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="RobotAddress" value="127.0.0.1:10110" />
  15. <add key="AlignerAddress" value="127.0.0.1:10111" />
  16. <add key="WIDReaderAddress" value="127.0.0.1:23" />
  17. <add key="Su" value="21232f297a57a5a743894a0e4a801fc3" />
  18. <add key="ClientSettingsProvider.ServiceUri" value="" />
  19. </appSettings>
  20. <log4net>
  21. <appender name="fileAppender" type="log4net.Appender.RollingFileAppender">
  22. <param name="Encoding" value="utf-8" />
  23. <param name="File" value="Logs\log" />
  24. <param name="AppendToFile" value="true" />
  25. <param name="RollingStyle" value="Date" />
  26. <param name="StaticLogFileName" value="false" />
  27. <datePattern value="yyyyMMdd'.txt'" />
  28. <layout type="log4net.Layout.PatternLayout,log4net">
  29. <param name="ConversionPattern" value="%m%n" />
  30. <param name="Header" value="&lt;== " />
  31. <param name="Footer" value="==&gt;" />
  32. </layout>
  33. </appender>
  34. <root>
  35. <level value="ALL" />
  36. <appender-ref ref="fileAppender" />
  37. </root>
  38. </log4net>
  39. <system.diagnostics>
  40. <sources>
  41. <source name="System.ServiceModel" switchValue="Information,ActivityTracing" propagateActivity="true">
  42. <listeners>
  43. <add name="xml" />
  44. </listeners>
  45. </source>
  46. <source name="System.ServiceModel.MessageLogging">
  47. <listeners>
  48. <add name="xml" />
  49. </listeners>
  50. </source>
  51. </sources>
  52. <sharedListeners>
  53. <add initializeData="C:\logs\TracingAndLogging-service.svclog" type="System.Diagnostics.XmlWriterTraceListener" name="xml" />
  54. </sharedListeners>
  55. <trace autoflush="true" />
  56. </system.diagnostics>
  57. <!--<system.diagnostics>
  58. <sources>
  59. <source name="System.ServiceModel.MessageLogging">
  60. <listeners>
  61. <add name="messages"
  62. type="System.Diagnostics.XmlWriterTraceListener"
  63. initializeData="c:\logs\mitrt.svclog" />
  64. </listeners>
  65. </source>
  66. </sources>
  67. </system.diagnostics>-->
  68. <system.serviceModel>
  69. <!--<diagnostics>
  70. <messageLogging logEntireMessage="true" logMalformedMessages="false" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="false" maxMessagesToLog="3000" maxSizeOfMessageToLog="2000" />
  71. </diagnostics>-->
  72. <bindings>
  73. <netTcpBinding>
  74. <binding name="Aitex_netTcpBinding" maxReceivedMessageSize="2147483647" receiveTimeout="infinite">
  75. <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
  76. <security mode="None">
  77. <transport clientCredentialType="None" />
  78. <message clientCredentialType="None" />
  79. </security>
  80. </binding>
  81. </netTcpBinding>
  82. </bindings>
  83. <services>
  84. <service behaviorConfiguration="BasicBehavior" name="Aitex.Core.Account.AccountService">
  85. <endpoint address="net.tcp://localhost:8775/AccountService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.Account.IAccountService" />
  86. </service>
  87. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.OperationCenter.InvokeService">
  88. <endpoint address="net.tcp://localhost:8751/InvokeService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.OperationCenter.IInvokeService" />
  89. </service>
  90. <service behaviorConfiguration="BasicBehavior" name="Aitex.Core.WCF.EventService">
  91. <endpoint address="net.tcp://localhost:8752/EventService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.WCF.Interface.IEventService" />
  92. </service>
  93. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.DataCenter.QueryDataService">
  94. <endpoint address="net.tcp://localhost:8771/QueryDataService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.DataCenter.IQueryDataService" />
  95. </service>
  96. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.RecipeCenter.RecipeService">
  97. <endpoint address="net.tcp://localhost:8773/RecipeService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.RecipeCenter.IRecipeService" />
  98. </service>
  99. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.ParameterCenter.ParameterService">
  100. <endpoint address="net.tcp://localhost:8777/ParameterService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.ParameterCenter.IParameterService" />
  101. </service>
  102. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.Alarms.AlarmDefineService">
  103. <endpoint address="net.tcp://localhost:8779/AlarmDefineService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.Alarms.IAlarmDefineService" />
  104. </service>
  105. </services>
  106. <client>
  107. <endpoint address="net.tcp://localhost:6701/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_PM1" />
  108. <endpoint address="net.tcp://localhost:6702/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_Heater" />
  109. <endpoint address="net.tcp://localhost:6703/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_GasLine1" />
  110. <endpoint address="net.tcp://localhost:6704/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_GasLine2" />
  111. <endpoint address="net.tcp://localhost:6705/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_GasLine3" />
  112. <endpoint address="net.tcp://localhost:6706/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_GasLine4" />
  113. <endpoint address="net.tcp://localhost:6707/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_GasLine6" />
  114. <endpoint address="net.tcp://localhost:6708/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_GasLine7" />
  115. <endpoint address="net.tcp://localhost:6709/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_GasLine8" />
  116. </client>
  117. <behaviors>
  118. <serviceBehaviors>
  119. <behavior name="BasicBehavior">
  120. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  121. <serviceMetadata httpGetEnabled="false" />
  122. <serviceDebug includeExceptionDetailInFaults="true" />
  123. <serviceAuthorization impersonateCallerForAllOperations="false" />
  124. </behavior>
  125. <behavior name="SingleModeBehavior">
  126. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  127. <serviceMetadata httpGetEnabled="false" />
  128. <serviceDebug includeExceptionDetailInFaults="true" />
  129. <serviceAuthorization impersonateCallerForAllOperations="false" />
  130. </behavior>
  131. </serviceBehaviors>
  132. <endpointBehaviors>
  133. <behavior name="EndpointBehavior">
  134. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  135. </behavior>
  136. </endpointBehaviors>
  137. </behaviors>
  138. </system.serviceModel>
  139. <system.web>
  140. <membership defaultProvider="ClientAuthenticationMembershipProvider">
  141. <providers>
  142. <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
  143. </providers>
  144. </membership>
  145. <roleManager defaultProvider="ClientRoleProvider" enabled="true">
  146. <providers>
  147. <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
  148. </providers>
  149. </roleManager>
  150. </system.web>
  151. <runtime>
  152. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  153. <dependentAssembly>
  154. <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
  155. <bindingRedirect oldVersion="0.0.0.0-2.0.9.0" newVersion="2.0.9.0" />
  156. </dependentAssembly>
  157. </assemblyBinding>
  158. </runtime>
  159. </configuration>