app.config 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?xml version="1.0"?>
  2. <configuration>
  3. <configSections>
  4. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821"/>
  5. </configSections>
  6. <appSettings>
  7. <add key="ClientSettingsProvider.ServiceUri" value=""/>
  8. </appSettings>
  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. <startup useLegacyV2RuntimeActivationPolicy="true" AutoGenerateBindingRedirects="true">
  30. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
  31. <requiredRuntime version="v4.0.20506"/>
  32. </startup>
  33. <system.web>
  34. <membership defaultProvider="ClientAuthenticationMembershipProvider">
  35. <providers>
  36. <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri=""/>
  37. </providers>
  38. </membership>
  39. <roleManager defaultProvider="ClientRoleProvider" enabled="true">
  40. <providers>
  41. <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400"/>
  42. </providers>
  43. </roleManager>
  44. </system.web>
  45. <system.serviceModel>
  46. <diagnostics>
  47. <messageLogging logEntireMessage="true" logMalformedMessages="false" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="false" maxMessagesToLog="3000" maxSizeOfMessageToLog="2000"/>
  48. </diagnostics>
  49. <bindings>
  50. <netTcpBinding>
  51. <binding name="Aitex_netTcpBinding" maxReceivedMessageSize="2147483647" openTimeout="00:00:05" closeTimeout="00:03:00" receiveTimeout="00:30:00" sendTimeout="00:30:00">
  52. <readerQuotas maxDepth="132" maxStringContentLength="1048576" maxArrayLength="163840000" maxBytesPerRead="14096" maxNameTableCharCount="116384"/>
  53. <security mode="None"/>
  54. </binding>
  55. </netTcpBinding>
  56. </bindings>
  57. <behaviors>
  58. <endpointBehaviors>
  59. <behavior name="EndpointBehavior">
  60. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  61. </behavior>
  62. </endpointBehaviors>
  63. </behaviors>
  64. <client>
  65. <endpoint address="net.tcp://localhost:8751/InvokeService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Triton160.Common.Interface.IInvokeService" name="Client_IInvokeService" behaviorConfiguration="EndpointBehavior">
  66. </endpoint>
  67. <endpoint address="net.tcp://localhost:8752/EventService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.WCF.Interface.IEventService" name="Client_IEventService" behaviorConfiguration="EndpointBehavior">
  68. </endpoint>
  69. <endpoint address="net.tcp://localhost:8771/QueryDataService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Triton160.Common.Interface.IQueryDataService" name="Client_IQueryDataService" behaviorConfiguration="EndpointBehavior">
  70. </endpoint>
  71. <endpoint address="net.tcp://localhost:8773/RecipeService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Triton160.Common.Interface.IRecipeService" name="Client_IRecipeService" behaviorConfiguration="EndpointBehavior">
  72. </endpoint>
  73. <endpoint address="net.tcp://localhost:8775/AccountService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.Account.IAccountService" name="Client_IAccountService" behaviorConfiguration="EndpointBehavior">
  74. </endpoint>
  75. </client>
  76. </system.serviceModel>
  77. </configuration>