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. <appSettings>
  10. <!--0=>VirgoMask,1=>VirgoR-->
  11. <add key="ChamberType" value="0" />
  12. </appSettings>
  13. <log4net>
  14. <appender name="fileAppender" type="log4net.Appender.RollingFileAppender">
  15. <param name="File" value="Logs\logSim"/>
  16. <param name="AppendToFile" value="true"/>
  17. <param name="RollingStyle" value="Date"/>
  18. <param name="StaticLogFileName" value="false"/>
  19. <datePattern value="yyyyMMdd'.txt'"/>
  20. <layout type="log4net.Layout.PatternLayout,log4net">
  21. <param name="ConversionPattern" value="[%t] %m%n"/>
  22. <param name="Header" value="--------------------------------[Header Log]-----------------------------------------
  23. "/>
  24. <param name="Footer" value="--------------------------------[Footer Log]-----------------------------------------
  25. "/>
  26. </layout>
  27. </appender>
  28. <root>
  29. <level value="ALL"/>
  30. <appender-ref ref="fileAppender"/>
  31. </root>
  32. </log4net>
  33. <system.serviceModel>
  34. <!--<diagnostics>
  35. <messageLogging logEntireMessage="true" logMalformedMessages="false" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="false" maxMessagesToLog="3000" maxSizeOfMessageToLog="2000" />
  36. </diagnostics>-->
  37. <bindings>
  38. <netTcpBinding>
  39. <binding name="Aitex_netTcpBinding" maxReceivedMessageSize="102400000" receiveTimeout="infinite">
  40. <readerQuotas maxDepth="32" maxStringContentLength="1048576" maxArrayLength="163840000" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
  41. <security mode="None">
  42. <transport clientCredentialType="None"/>
  43. <message clientCredentialType="None"/>
  44. </security>
  45. </binding>
  46. </netTcpBinding>
  47. </bindings>
  48. <services>
  49. <service behaviorConfiguration="BasicBehavior" name="VirgoSimulator.Views.PECVDService">
  50. <endpoint address="net.tcp://localhost:9002/PMService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="ClusterInterface.IPmService"/>
  51. </service>
  52. <service behaviorConfiguration="BasicBehavior" name="VirgoSimulator.Views.IBEService">
  53. <endpoint address="net.tcp://localhost:9004/PMService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="ClusterInterface.IPmService"/>
  54. </service>
  55. <service behaviorConfiguration="BasicBehavior" name="VirgoSimulator.Views.ICPService">
  56. <endpoint address="net.tcp://localhost:9006/PMService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="ClusterInterface.IPmService"/>
  57. </service>
  58. </services>
  59. <behaviors>
  60. <serviceBehaviors>
  61. <behavior name="BasicBehavior">
  62. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  63. <serviceMetadata httpGetEnabled="false"/>
  64. <serviceDebug includeExceptionDetailInFaults="true"/>
  65. <serviceAuthorization impersonateCallerForAllOperations="false"/>
  66. </behavior>
  67. <behavior name="SingleModeBehavior">
  68. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  69. <serviceMetadata httpGetEnabled="false"/>
  70. <serviceDebug includeExceptionDetailInFaults="true"/>
  71. <serviceAuthorization impersonateCallerForAllOperations="false"/>
  72. </behavior>
  73. </serviceBehaviors>
  74. <endpointBehaviors>
  75. <behavior name="EndpointBehavior">
  76. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  77. </behavior>
  78. </endpointBehaviors>
  79. </behaviors>
  80. </system.serviceModel>
  81. </configuration>