App.config 8.0 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="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"
  101. behaviorConfiguration="EndpointBehavior"
  102. binding="netTcpBinding"
  103. bindingConfiguration="Aitex_netTcpBinding"
  104. contract="MECF.Framework.Common.PLC.IWcfPlcService"
  105. name="WcfPlc_System"/>
  106. <endpoint address="net.tcp://localhost:6701/SimulatorPlcService"
  107. behaviorConfiguration="EndpointBehavior"
  108. binding="netTcpBinding"
  109. bindingConfiguration="Aitex_netTcpBinding"
  110. contract="MECF.Framework.Common.PLC.IWcfPlcService"
  111. name="WcfPlc_PMA"/>
  112. <endpoint address="net.tcp://localhost:6702/SimulatorPlcService"
  113. behaviorConfiguration="EndpointBehavior"
  114. binding="netTcpBinding"
  115. bindingConfiguration="Aitex_netTcpBinding"
  116. contract="MECF.Framework.Common.PLC.IWcfPlcService"
  117. name="WcfPlc_PMB"/>
  118. <endpoint address="net.tcp://192.168.10.20:5771/EPDService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="EPInterface.IEPDService" name="Client_IEPDService"/>
  119. <endpoint address="net.tcp://192.168.10.20:5773/EPDCallbackService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="EPInterface.IEPDCallbackService" name="Client_IEPDCallbackService" />
  120. </client>
  121. <behaviors>
  122. <serviceBehaviors>
  123. <behavior name="BasicBehavior">
  124. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  125. <serviceMetadata httpGetEnabled="false"/>
  126. <serviceDebug includeExceptionDetailInFaults="true"/>
  127. <serviceAuthorization impersonateCallerForAllOperations="false"/>
  128. </behavior>
  129. <behavior name="SingleModeBehavior">
  130. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  131. <serviceMetadata httpGetEnabled="false"/>
  132. <serviceDebug includeExceptionDetailInFaults="true"/>
  133. <serviceAuthorization impersonateCallerForAllOperations="false"/>
  134. </behavior>
  135. </serviceBehaviors>
  136. <endpointBehaviors>
  137. <behavior name="EndpointBehavior">
  138. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  139. </behavior>
  140. </endpointBehaviors>
  141. </behaviors>
  142. </system.serviceModel>
  143. <system.web>
  144. <membership defaultProvider="ClientAuthenticationMembershipProvider">
  145. <providers>
  146. <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri=""/>
  147. </providers>
  148. </membership>
  149. <roleManager defaultProvider="ClientRoleProvider" enabled="true">
  150. <providers>
  151. <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400"/>
  152. </providers>
  153. </roleManager>
  154. </system.web>
  155. </configuration>