App.config 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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.6.1"/>
  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="File" value="Logs\log"/>
  23. <param name="AppendToFile" value="true"/>
  24. <param name="RollingStyle" value="Date"/>
  25. <param name="StaticLogFileName" value="false"/>
  26. <datePattern value="yyyyMMdd'.txt'"/>
  27. <layout type="log4net.Layout.PatternLayout,log4net">
  28. <param name="ConversionPattern" value="%m%n"/>
  29. <param name="Header" value="&lt;== "/>
  30. <param name="Footer" value="==&gt;"/>
  31. </layout>
  32. </appender>
  33. <root>
  34. <level value="ALL"/>
  35. <appender-ref ref="fileAppender"/>
  36. </root>
  37. </log4net>
  38. <system.diagnostics>
  39. <sources>
  40. <source name="System.ServiceModel" switchValue="Information,ActivityTracing" propagateActivity="true">
  41. <listeners>
  42. <add name="xml"/>
  43. </listeners>
  44. </source>
  45. <source name="System.ServiceModel.MessageLogging">
  46. <listeners>
  47. <add name="xml"/>
  48. </listeners>
  49. </source>
  50. </sources>
  51. <sharedListeners>
  52. <add initializeData="C:\logs\TracingAndLogging-service.svclog" type="System.Diagnostics.XmlWriterTraceListener" name="xml"/>
  53. </sharedListeners>
  54. <trace autoflush="true"/>
  55. </system.diagnostics>
  56. <!--<system.diagnostics>
  57. <sources>
  58. <source name="System.ServiceModel.MessageLogging">
  59. <listeners>
  60. <add name="messages"
  61. type="System.Diagnostics.XmlWriterTraceListener"
  62. initializeData="c:\logs\mitrt.svclog" />
  63. </listeners>
  64. </source>
  65. </sources>
  66. </system.diagnostics>-->
  67. <system.serviceModel>
  68. <!--<diagnostics>
  69. <messageLogging logEntireMessage="true" logMalformedMessages="false" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="false" maxMessagesToLog="3000" maxSizeOfMessageToLog="2000" />
  70. </diagnostics>-->
  71. <bindings>
  72. <netTcpBinding>
  73. <binding name="Aitex_netTcpBinding" maxReceivedMessageSize="102400000" receiveTimeout="infinite">
  74. <readerQuotas maxDepth="32" maxStringContentLength="1048576" maxArrayLength="163840000" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
  75. <security mode="None">
  76. <transport clientCredentialType="None"/>
  77. <message clientCredentialType="None"/>
  78. </security>
  79. </binding>
  80. </netTcpBinding>
  81. </bindings>
  82. <services>
  83. <service behaviorConfiguration="BasicBehavior" name="Aitex.Core.Account.AccountService">
  84. <endpoint address="net.tcp://localhost:8775/AccountService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.Account.IAccountService"/>
  85. </service>
  86. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.OperationCenter.InvokeService">
  87. <endpoint address="net.tcp://localhost:8751/InvokeService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.OperationCenter.IInvokeService"/>
  88. </service>
  89. <service behaviorConfiguration="BasicBehavior" name="Aitex.Core.WCF.EventService">
  90. <endpoint address="net.tcp://localhost:8752/EventService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.WCF.Interface.IEventService"/>
  91. </service>
  92. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.DataCenter.QueryDataService">
  93. <endpoint address="net.tcp://localhost:8771/QueryDataService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.DataCenter.IQueryDataService"/>
  94. </service>
  95. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.RecipeCenter.RecipeService">
  96. <endpoint address="net.tcp://localhost:8773/RecipeService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.RecipeCenter.IRecipeService"/>
  97. </service>
  98. </services>
  99. <client>
  100. <endpoint address="net.tcp://localhost:6700/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_System"/>
  101. <endpoint address="net.tcp://localhost:6701/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_PMA"/>
  102. <endpoint address="net.tcp://localhost:6702/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_PMB"/>
  103. <endpoint address="net.tcp://192.168.10.20:5771/EPDService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="EPInterface.IEPDService" name="Client_IEPDService"/>
  104. <endpoint address="net.tcp://192.168.10.20:5773/EPDCallbackService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="EPInterface.IEPDCallbackService" name="Client_IEPDCallbackService"/>
  105. </client>
  106. <behaviors>
  107. <serviceBehaviors>
  108. <behavior name="BasicBehavior">
  109. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  110. <serviceMetadata httpGetEnabled="false"/>
  111. <serviceDebug includeExceptionDetailInFaults="true"/>
  112. <serviceAuthorization impersonateCallerForAllOperations="false"/>
  113. </behavior>
  114. <behavior name="SingleModeBehavior">
  115. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  116. <serviceMetadata httpGetEnabled="false"/>
  117. <serviceDebug includeExceptionDetailInFaults="true"/>
  118. <serviceAuthorization impersonateCallerForAllOperations="false"/>
  119. </behavior>
  120. </serviceBehaviors>
  121. <endpointBehaviors>
  122. <behavior name="EndpointBehavior">
  123. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  124. </behavior>
  125. </endpointBehaviors>
  126. </behaviors>
  127. </system.serviceModel>
  128. <system.web>
  129. <membership defaultProvider="ClientAuthenticationMembershipProvider">
  130. <providers>
  131. <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri=""/>
  132. </providers>
  133. </membership>
  134. <roleManager defaultProvider="ClientRoleProvider" enabled="true">
  135. <providers>
  136. <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400"/>
  137. </providers>
  138. </roleManager>
  139. </system.web>
  140. </configuration>