App.config 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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=1b44e1d426115821"/>
  5. </configSections>
  6. <startup>
  7. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/>
  8. </startup>
  9. <log4net>
  10. <appender name="fileAppender" type="log4net.Appender.RollingFileAppender">
  11. <param name="File" value="Logs\appLog"/>
  12. <param name="AppendToFile" value="true"/>
  13. <param name="RollingStyle" value="Date"/>
  14. <param name="StaticLogFileName" value="false"/>
  15. <datePattern value="yyyyMMdd'.txt'"/>
  16. <layout type="log4net.Layout.PatternLayout,log4net">
  17. <param name="ConversionPattern" value="[%t] %m%n"/>
  18. <param name="Header" value="--------------------------------[Header Log]-----------------------------------------
  19. "/>
  20. <param name="Footer" value="--------------------------------[Footer Log]-----------------------------------------
  21. "/>
  22. </layout>
  23. </appender>
  24. <root>
  25. <level value="ALL"/>
  26. <appender-ref ref="fileAppender"/>
  27. </root>
  28. </log4net>
  29. <system.serviceModel>
  30. <!--<diagnostics>
  31. <messageLogging logEntireMessage="true" logMalformedMessages="false" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="false" maxMessagesToLog="3000" maxSizeOfMessageToLog="2000" />
  32. </diagnostics>-->
  33. <bindings>
  34. <netTcpBinding>
  35. <binding name="Aitex_netTcpBinding" maxReceivedMessageSize="102400000" receiveTimeout="infinite">
  36. <readerQuotas maxDepth="32" maxStringContentLength="1048576" maxArrayLength="163840000" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
  37. <security mode="None">
  38. <transport clientCredentialType="None"/>
  39. <message clientCredentialType="None"/>
  40. </security>
  41. </binding>
  42. </netTcpBinding>
  43. </bindings>
  44. <services>
  45. <service behaviorConfiguration="BasicBehavior" name="EfemDualSimulator.Instances.SimulatorPlc1">
  46. <endpoint address="net.tcp://localhost:6701/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService"/>
  47. </service>
  48. <service behaviorConfiguration="BasicBehavior" name="EfemDualSimulator.Instances.SimulatorPlc2">
  49. <endpoint address="net.tcp://localhost:6702/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService"/>
  50. </service>
  51. <service behaviorConfiguration="BasicBehavior" name="EfemDualSimulator.Instances.SimulatorPlc0">
  52. <endpoint address="net.tcp://localhost:6700/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService"/>
  53. </service>
  54. </services>
  55. <behaviors>
  56. <serviceBehaviors>
  57. <behavior name="BasicBehavior">
  58. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  59. <serviceMetadata httpGetEnabled="false"/>
  60. <serviceDebug includeExceptionDetailInFaults="true"/>
  61. <serviceAuthorization impersonateCallerForAllOperations="false"/>
  62. </behavior>
  63. <behavior name="SingleModeBehavior">
  64. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  65. <serviceMetadata httpGetEnabled="false"/>
  66. <serviceDebug includeExceptionDetailInFaults="true"/>
  67. <serviceAuthorization impersonateCallerForAllOperations="false"/>
  68. </behavior>
  69. </serviceBehaviors>
  70. <endpointBehaviors>
  71. <behavior name="EndpointBehavior">
  72. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  73. </behavior>
  74. </endpointBehaviors>
  75. </behaviors>
  76. </system.serviceModel>
  77. </configuration>