App.config 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. <param name="Footer" value="--------------------------------[Footer Log]----------------------------------------- " />
  20. </layout>
  21. </appender>
  22. <root>
  23. <level value="ALL" />
  24. <appender-ref ref="fileAppender" />
  25. </root>
  26. </log4net>
  27. <system.serviceModel>
  28. <!--<diagnostics>
  29. <messageLogging logEntireMessage="true" logMalformedMessages="false" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="false" maxMessagesToLog="3000" maxSizeOfMessageToLog="2000" />
  30. </diagnostics>-->
  31. <bindings>
  32. <netTcpBinding>
  33. <binding name="Aitex_netTcpBinding" maxReceivedMessageSize="102400000" receiveTimeout="infinite">
  34. <readerQuotas maxDepth="32" maxStringContentLength="1048576" maxArrayLength="16384000" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
  35. <security mode="None">
  36. <transport clientCredentialType="None" />
  37. <message clientCredentialType="None" />
  38. </security>
  39. </binding>
  40. </netTcpBinding>
  41. </bindings>
  42. <services>
  43. <service behaviorConfiguration="BasicBehavior" name="FurnaceSimulator.Instances.SimulatorPlc1">
  44. <endpoint address="net.tcp://localhost:6701/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" />
  45. </service>
  46. <service behaviorConfiguration="BasicBehavior" name="FurnaceSimulator.Instances.SimulatorPlc2">
  47. <endpoint address="net.tcp://localhost:6702/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" />
  48. </service>
  49. <service behaviorConfiguration="BasicBehavior" name="FurnaceSimulator.Instances.SimulatorPlc3">
  50. <endpoint address="net.tcp://localhost:6703/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" />
  51. </service>
  52. <service behaviorConfiguration="BasicBehavior" name="FurnaceSimulator.Instances.SimulatorPlc4">
  53. <endpoint address="net.tcp://localhost:6704/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" />
  54. </service>
  55. <service behaviorConfiguration="BasicBehavior" name="FurnaceSimulator.Instances.SimulatorPlc5">
  56. <endpoint address="net.tcp://localhost:6705/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" />
  57. </service>
  58. <service behaviorConfiguration="BasicBehavior" name="FurnaceSimulator.Instances.SimulatorPlc6">
  59. <endpoint address="net.tcp://localhost:6706/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" />
  60. </service>
  61. <service behaviorConfiguration="BasicBehavior" name="FurnaceSimulator.Instances.SimulatorPlc7">
  62. <endpoint address="net.tcp://localhost:6707/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" />
  63. </service>
  64. <service behaviorConfiguration="BasicBehavior" name="FurnaceSimulator.Instances.SimulatorPlc8">
  65. <endpoint address="net.tcp://localhost:6708/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" />
  66. </service>
  67. <service behaviorConfiguration="BasicBehavior" name="FurnaceSimulator.Instances.SimulatorPlc9">
  68. <endpoint address="net.tcp://localhost:6709/SimulatorPlcService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" />
  69. </service>
  70. </services>
  71. <behaviors>
  72. <serviceBehaviors>
  73. <behavior name="BasicBehavior">
  74. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  75. <serviceMetadata httpGetEnabled="false" />
  76. <serviceDebug includeExceptionDetailInFaults="true" />
  77. <serviceAuthorization impersonateCallerForAllOperations="false" />
  78. </behavior>
  79. <behavior name="SingleModeBehavior">
  80. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  81. <serviceMetadata httpGetEnabled="false" />
  82. <serviceDebug includeExceptionDetailInFaults="true" />
  83. <serviceAuthorization impersonateCallerForAllOperations="false" />
  84. </behavior>
  85. </serviceBehaviors>
  86. <endpointBehaviors>
  87. <behavior name="EndpointBehavior">
  88. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  89. </behavior>
  90. </endpointBehaviors>
  91. </behaviors>
  92. <client>
  93. <endpoint address="net.tcp://localhost:8771/QueryDataService/Simulator" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.DataCenter.IQueryDataService" name="Client_IQueryDataService" />
  94. <endpoint address="net.tcp://localhost:8751/InvokeService/Simulator" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.OperationCenter.IInvokeService" name="Client_IInvokeService" />
  95. </client>
  96. </system.serviceModel>
  97. <runtime>
  98. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  99. <dependentAssembly>
  100. <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
  101. <bindingRedirect oldVersion="0.0.0.0-2.0.8.0" newVersion="2.0.8.0" />
  102. </dependentAssembly>
  103. </assemblyBinding>
  104. </runtime>
  105. </configuration>