App.config 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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="16384000" 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="FurnaceSimulator.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="FurnaceSimulator.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="FurnaceSimulator.Instances.SimulatorPlc3">
  52. <endpoint address="net.tcp://localhost:6703/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService"/>
  53. </service>
  54. <service behaviorConfiguration="BasicBehavior" name="FurnaceSimulator.Instances.SimulatorPlc4">
  55. <endpoint address="net.tcp://localhost:6704/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService"/>
  56. </service>
  57. <service behaviorConfiguration="BasicBehavior" name="FurnaceSimulator.Instances.SimulatorPlc5">
  58. <endpoint address="net.tcp://localhost:6705/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService"/>
  59. </service>
  60. <service behaviorConfiguration="BasicBehavior" name="FurnaceSimulator.Instances.SimulatorPlc6">
  61. <endpoint address="net.tcp://localhost:6706/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService"/>
  62. </service>
  63. <service behaviorConfiguration="BasicBehavior" name="FurnaceSimulator.Instances.SimulatorPlc7">
  64. <endpoint address="net.tcp://localhost:6707/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService"/>
  65. </service>
  66. <service behaviorConfiguration="BasicBehavior" name="FurnaceSimulator.Instances.SimulatorPlc8">
  67. <endpoint address="net.tcp://localhost:6708/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService"/>
  68. </service>
  69. <service behaviorConfiguration="BasicBehavior" name="FurnaceSimulator.Instances.SimulatorPlc9">
  70. <endpoint address="net.tcp://localhost:6709/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService"/>
  71. </service>
  72. </services>
  73. <behaviors>
  74. <serviceBehaviors>
  75. <behavior name="BasicBehavior">
  76. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  77. <serviceMetadata httpGetEnabled="false"/>
  78. <serviceDebug includeExceptionDetailInFaults="true"/>
  79. <serviceAuthorization impersonateCallerForAllOperations="false"/>
  80. </behavior>
  81. <behavior name="SingleModeBehavior">
  82. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  83. <serviceMetadata httpGetEnabled="false"/>
  84. <serviceDebug includeExceptionDetailInFaults="true"/>
  85. <serviceAuthorization impersonateCallerForAllOperations="false"/>
  86. </behavior>
  87. </serviceBehaviors>
  88. <endpointBehaviors>
  89. <behavior name="EndpointBehavior">
  90. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  91. </behavior>
  92. </endpointBehaviors>
  93. </behaviors>
  94. <client>
  95. <endpoint address="net.tcp://localhost:8771/QueryDataService/Simulator" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.DataCenter.IQueryDataService" name="Client_IQueryDataService"/>
  96. <endpoint address="net.tcp://localhost:8751/InvokeService/Simulator" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.OperationCenter.IInvokeService" name="Client_IInvokeService"/>
  97. </client>
  98. </system.serviceModel>
  99. </configuration>