App.config 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a" />
  5. </configSections>
  6. <system.serviceModel>
  7. <!--<diagnostics>
  8. <messageLogging
  9. logEntireMessage="false"
  10. logMalformedMessages="false"
  11. logMessagesAtServiceLevel="true"
  12. logMessagesAtTransportLevel="false"
  13. maxMessagesToLog="3000"
  14. maxSizeOfMessageToLog="2000"/>
  15. </diagnostics>-->
  16. <bindings>
  17. <netTcpBinding>
  18. <binding name="Aitex_netTcpBinding" maxReceivedMessageSize="2147483647" openTimeout="00:00:05" closeTimeout="00:03:00" receiveTimeout="00:30:00" sendTimeout="00:30:00">
  19. <readerQuotas maxDepth="132" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="14096" maxNameTableCharCount="116384" />
  20. <security mode="None" />
  21. </binding>
  22. </netTcpBinding>
  23. </bindings>
  24. <behaviors>
  25. <endpointBehaviors>
  26. <behavior name="EndpointBehavior">
  27. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  28. </behavior>
  29. </endpointBehaviors>
  30. </behaviors>
  31. <client>
  32. <!--后屏改localhost的IP-->
  33. <endpoint address="net.tcp://localhost:8751/InvokeService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.OperationCenter.IInvokeService" name="Client_IInvokeService" />
  34. <endpoint address="net.tcp://localhost:8752/EventService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.WCF.Interface.IEventService" name="Client_IEventService" />
  35. <endpoint address="net.tcp://localhost:8771/QueryDataService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.DataCenter.IQueryDataService" name="Client_IQueryDataService" />
  36. <endpoint address="net.tcp://localhost:8773/RecipeService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.RecipeCenter.IRecipeService" name="Client_IRecipeService" />
  37. <endpoint address="net.tcp://localhost:8777/ParameterService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.ParameterCenter.IParameterService" name="Client_IParameterService" />
  38. <endpoint address="net.tcp://localhost:8775/AccountService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.Account.IAccountService" name="Client_IAccountService" />
  39. <endpoint address="net.tcp://localhost:8779/AlarmDefineService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.Alarms.IAlarmDefineService" name="Client_IAlarmDefineService" />
  40. </client>
  41. </system.serviceModel>
  42. <startup>
  43. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
  44. </startup>
  45. <appSettings>
  46. <add key="IsLock" value="true" />
  47. <!--后屏改IsSlave为true-->
  48. <add key="IsSlave" value="false" />
  49. <add key="ClientSettingsProvider.ServiceUri" value="" />
  50. </appSettings>
  51. <log4net>
  52. <appender name="fileAppender" type="log4net.Appender.RollingFileAppender">
  53. <param name="File" value="Logs\log" />
  54. <param name="AppendToFile" value="true" />
  55. <param name="RollingStyle" value="Date" />
  56. <param name="StaticLogFileName" value="false" />
  57. <datePattern value="yyyyMMdd'.txt'" />
  58. <layout type="log4net.Layout.PatternLayout,log4net">
  59. <param name="ConversionPattern" value="%m%n" />
  60. <param name="Header" value="&lt;== " />
  61. <param name="Footer" value="==&gt;" />
  62. </layout>
  63. </appender>
  64. <root>
  65. <level value="ALL" />
  66. <appender-ref ref="fileAppender" />
  67. </root>
  68. </log4net>
  69. <system.web>
  70. <membership defaultProvider="ClientAuthenticationMembershipProvider">
  71. <providers>
  72. <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
  73. </providers>
  74. </membership>
  75. <roleManager defaultProvider="ClientRoleProvider" enabled="true">
  76. <providers>
  77. <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
  78. </providers>
  79. </roleManager>
  80. </system.web>
  81. </configuration>