App.config 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net " />
  5. </configSections>
  6. <log4net>
  7. <appender name="fileAppender" type="log4net.Appender.RollingFileAppender">
  8. <param name="Encoding" value="utf-8" />
  9. <param name="File" value="Logs/log" />
  10. <param name="AppendToFile" value="true" />
  11. <param name="RollingStyle" value="Date" />
  12. <param name="StaticLogFileName" value="false" />
  13. <datePattern value="yyyyMMdd'.txt'" />
  14. <layout type="log4net.Layout.PatternLayout,log4net">
  15. <param name="ConversionPattern" value="%d%8p %m%n" />
  16. <param name="Header" value="&#xA;----------------------RT Start Running--------------------------&#xA;" />
  17. </layout>
  18. </appender>
  19. <root>
  20. <level value="ALL" />
  21. <appender-ref ref="fileAppender" />
  22. </root>
  23. </log4net>
  24. <startup>
  25. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
  26. </startup>
  27. <connectionStrings>
  28. <add name="PostgreSQL" connectionString="Server=localhost;Port=5432;User Id=postgres;Password=123456;Database=postgres;Integrated Security=True;Enlist=true;Preload Reader=true;" />
  29. </connectionStrings>
  30. <system.serviceModel>
  31. <!--<diagnostics>
  32. <messageLogging logEntireMessage="true" logMalformedMessages="false" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="false" maxMessagesToLog="3000" maxSizeOfMessageToLog="2000" />
  33. </diagnostics>-->
  34. <bindings>
  35. <netTcpBinding>
  36. <binding name="Aitex_netTcpBinding" maxReceivedMessageSize="102400000" receiveTimeout="00:10:00">
  37. <readerQuotas maxDepth="32" maxStringContentLength="1048576" maxArrayLength="163840000" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
  38. <security mode="None">
  39. <transport clientCredentialType="None" />
  40. <message clientCredentialType="None" />
  41. </security>
  42. </binding>
  43. </netTcpBinding>
  44. </bindings>
  45. <services>
  46. <service behaviorConfiguration="BasicBehavior" name="Aitex.Core.Account.AccountService">
  47. <endpoint address="net.tcp://localhost:8775/AccountService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.Account.IAccountService" />
  48. </service>
  49. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.OperationCenter.InvokeService">
  50. <endpoint address="net.tcp://localhost:8751/InvokeService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.OperationCenter.IInvokeService" />
  51. </service>
  52. <service behaviorConfiguration="BasicBehavior" name="Aitex.Core.WCF.EventService">
  53. <endpoint address="net.tcp://localhost:8752/EventService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.WCF.Interface.IEventService" />
  54. </service>
  55. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.DataCenter.QueryDataService">
  56. <endpoint address="net.tcp://localhost:8771/QueryDataService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.DataCenter.IQueryDataService" />
  57. </service>
  58. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.RecipeCenter.RecipeService">
  59. <endpoint address="net.tcp://localhost:8773/RecipeService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.RecipeCenter.IRecipeService" />
  60. </service>
  61. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.WaferHolder.WaferHolderDataService">
  62. <endpoint address="net.tcp://localhost:8777/WaferHolderDataService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.WaferHolder.IWaferHolderDataService" />
  63. </service>
  64. </services>
  65. <behaviors>
  66. <serviceBehaviors>
  67. <behavior name="BasicBehavior">
  68. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  69. <serviceMetadata httpGetEnabled="false" />
  70. <serviceDebug includeExceptionDetailInFaults="true" />
  71. <serviceAuthorization impersonateCallerForAllOperations="false" />
  72. </behavior>
  73. <behavior name="SingleModeBehavior">
  74. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  75. <serviceMetadata httpGetEnabled="false" />
  76. <serviceDebug includeExceptionDetailInFaults="true" />
  77. <serviceAuthorization impersonateCallerForAllOperations="false" />
  78. </behavior>
  79. </serviceBehaviors>
  80. <endpointBehaviors>
  81. <behavior name="EndpointBehavior">
  82. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  83. </behavior>
  84. </endpointBehaviors>
  85. </behaviors>
  86. </system.serviceModel>
  87. <runtime>
  88. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  89. <dependentAssembly>
  90. <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
  91. <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
  92. </dependentAssembly>
  93. <dependentAssembly>
  94. <assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  95. <bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
  96. </dependentAssembly>
  97. <dependentAssembly>
  98. <assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
  99. <bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
  100. </dependentAssembly>
  101. <dependentAssembly>
  102. <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  103. <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
  104. </dependentAssembly>
  105. </assemblyBinding>
  106. </runtime>
  107. </configuration>