App.config 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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://192.168.10.20:5771/EPDService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="EPInterface.IEPDService" name="Client_IEPDService"/>
  38. <endpoint address="net.tcp://192.168.10.20:5773/EPDCallbackService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="EPInterface.IEPDCallbackService" name="Client_IEPDCallbackService"/>
  39. </client>
  40. </system.serviceModel>
  41. <startup>
  42. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
  43. </startup>
  44. <log4net>
  45. <appender name="fileAppender" type="log4net.Appender.RollingFileAppender">
  46. <param name="File" value="Logs\log"/>
  47. <param name="AppendToFile" value="true"/>
  48. <param name="RollingStyle" value="Date"/>
  49. <param name="StaticLogFileName" value="false"/>
  50. <datePattern value="yyyyMMdd'.txt'"/>
  51. <layout type="log4net.Layout.PatternLayout,log4net">
  52. <param name="ConversionPattern" value="%m%n"/>
  53. <param name="Header" value="&lt;== "/>
  54. <param name="Footer" value="==&gt;"/>
  55. </layout>
  56. </appender>
  57. <root>
  58. <level value="ALL"/>
  59. <appender-ref ref="fileAppender"/>
  60. </root>
  61. </log4net>
  62. </configuration>