App.config 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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="1048576" maxArrayLength="163840000" 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. <endpoint address="net.tcp://localhost:8751/InvokeService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.OperationCenter.IInvokeService" name="Client_IInvokeService" />
  33. <endpoint address="net.tcp://localhost:8752/EventService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.WCF.Interface.IEventService" name="Client_IEventService" />
  34. <endpoint address="net.tcp://localhost:8771/QueryDataService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.DataCenter.IQueryDataService" name="Client_IQueryDataService" />
  35. <endpoint address="net.tcp://localhost:8773/RecipeService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.RecipeCenter.IRecipeService" name="Client_IRecipeService" />
  36. <endpoint address="net.tcp://localhost:8775/AccountService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.Account.IAccountService" name="Client_IAccountService" />
  37. <endpoint address="net.tcp://localhost:8779/AlarmDefineService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.Alarms.IAlarmDefineService" name="Client_IAlarmDefineService" />
  38. </client>
  39. </system.serviceModel>
  40. <startup>
  41. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
  42. </startup>
  43. <appSettings>
  44. <add key="IsLock" value="true" />
  45. <add key="IsSlave" value="false" />
  46. </appSettings>
  47. <log4net>
  48. <appender name="fileAppender" type="log4net.Appender.RollingFileAppender">
  49. <param name="File" value="Logs\log" />
  50. <param name="AppendToFile" value="true" />
  51. <param name="RollingStyle" value="Date" />
  52. <param name="StaticLogFileName" value="false" />
  53. <datePattern value="yyyyMMdd'.txt'" />
  54. <layout type="log4net.Layout.PatternLayout,log4net">
  55. <param name="ConversionPattern" value="%m%n" />
  56. <param name="Header" value="&lt;== " />
  57. <param name="Footer" value="==&gt;" />
  58. </layout>
  59. </appender>
  60. <root>
  61. <level value="ALL" />
  62. <appender-ref ref="fileAppender" />
  63. </root>
  64. </log4net>
  65. <runtime>
  66. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  67. <dependentAssembly>
  68. <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
  69. <bindingRedirect oldVersion="0.0.0.0-2.0.9.0" newVersion="2.0.9.0" />
  70. </dependentAssembly>
  71. </assemblyBinding>
  72. </runtime>
  73. </configuration>