You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
127 lines
5.7 KiB
127 lines
5.7 KiB
<?xml version="1.0"?>
|
|
<configuration>
|
|
<configSections>
|
|
<!--日志处理组件-->
|
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
|
|
</configSections>
|
|
<appSettings>
|
|
<!--任务调度服务凭据-->
|
|
<add key="ServiceCredentialID" value="d7911036-d36f-460f-a052-979628322df3" />
|
|
<!--服务中心调用凭据-->
|
|
<add key="ServiceCredential" value="123456"/>
|
|
|
|
</appSettings>
|
|
<!--日志组件配置开始-->
|
|
<log4net>
|
|
<logger name="loginfo">
|
|
<level value="INFO"/>
|
|
<appender-ref ref="InfoAppender"/>
|
|
</logger>
|
|
<logger name="debuginfo">
|
|
<level value="DEBUG"/>
|
|
<appender-ref ref="DebugAppender"/>
|
|
</logger>
|
|
<logger name="errorinfo">
|
|
<level value="ERROR"/>
|
|
<appender-ref ref="ErrorAppender"/>
|
|
</logger>
|
|
<appender name="InfoAppender" type="log4net.Appender.RollingFileAppender">
|
|
<param name="File" value="Log\\Info\\" />
|
|
<param name="AppendToFile" value="true" />
|
|
<param name="MaxFileSize" value="10240" />
|
|
<param name="MaxSizeRollBackups" value="100" />
|
|
<param name="StaticLogFileName" value="false" />
|
|
<param name="DatePattern" value="yyyyMMdd".txt"" />
|
|
<param name="RollingStyle" value="Date" />
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
<param name="ConversionPattern" value="日志时间:%d %n日志级别:%-5p %n日 志 类:%c [%x] %n%m" />
|
|
</layout>
|
|
</appender>
|
|
<appender name="DebugAppender" type="log4net.Appender.RollingFileAppender">
|
|
<param name="File" value="Log\\Debug\\" />
|
|
<param name="AppendToFile" value="true" />
|
|
<param name="MaxFileSize" value="10240" />
|
|
<param name="MaxSizeRollBackups" value="100" />
|
|
<param name="StaticLogFileName" value="false" />
|
|
<param name="DatePattern" value="yyyyMMdd".txt"" />
|
|
<param name="RollingStyle" value="Date" />
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
<param name="ConversionPattern" value="日志时间:%d %n日志级别:%-5p %n日 志 类:%c [%x] %n%m" />
|
|
</layout>
|
|
</appender>
|
|
<appender name="ErrorAppender" type="log4net.Appender.RollingFileAppender">
|
|
<param name="File" value="Log\\Error\\" />
|
|
<param name="AppendToFile" value="true" />
|
|
<param name="MaxFileSize" value="10240" />
|
|
<param name="MaxSizeRollBackups" value="100" />
|
|
<param name="StaticLogFileName" value="false" />
|
|
<param name="DatePattern" value="yyyyMMdd".txt"" />
|
|
<param name="RollingStyle" value="Date" />
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
<param name="ConversionPattern" value="日志时间:%d %n日志级别:%-5p %n日 志 类:%c [%x] %n%m " />
|
|
</layout>
|
|
</appender>
|
|
</log4net>
|
|
<system.serviceModel>
|
|
<bindings>
|
|
<basicHttpBinding>
|
|
<binding name="BasicHttpBinding_IGeneralService" closeTimeout="00:11:00" openTimeout="00:11:00" receiveTimeout="00:10:00" sendTimeout="00:11:00"
|
|
maxBufferSize="6553600" maxBufferPoolSize="52428800" maxReceivedMessageSize="6553600"
|
|
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
|
|
<readerQuotas maxDepth="32" maxStringContentLength="5097152" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
|
|
<security mode="None">
|
|
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
|
|
<message clientCredentialType="UserName" algorithmSuite="Default" />
|
|
</security>
|
|
</binding>
|
|
</basicHttpBinding>
|
|
<netTcpBinding>
|
|
<binding name="NetTcpBinding_ITaskService" maxBufferPoolSize="524288000" maxReceivedMessageSize="2147483647">
|
|
<readerQuotas maxStringContentLength="2097152000" maxArrayLength="1200000"/>
|
|
<security mode="None">
|
|
</security>
|
|
</binding>
|
|
</netTcpBinding>
|
|
</bindings>
|
|
<client>
|
|
<endpoint address="http://10.111.144.97:8938/GeneralService.svc"
|
|
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService"
|
|
contract="CenterGeneralService.IGeneralService" name="BasicHttpBinding_IGeneralService" />
|
|
<endpoint address="http://10.111.144.97:8938/LoginService.svc"
|
|
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService"
|
|
contract="LoginService.ILoginService" name="BasicHttpBinding_ILoginService" />
|
|
</client>
|
|
<services>
|
|
<!--公共查询服务-->
|
|
<service behaviorConfiguration="TaskServiceBehavior" name="QMTask.Core.TaskService">
|
|
<endpoint address="" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_ITaskService" contract="QMTask.Core.ITaskService">
|
|
<identity>
|
|
<dns value="localhost"/>
|
|
</identity>
|
|
</endpoint>
|
|
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange"/>
|
|
<host>
|
|
<baseAddresses>
|
|
<add baseAddress="net.tcp://10.111.144.97:8732/QMTask.Core/TaskService/"/>
|
|
</baseAddresses>
|
|
</host>
|
|
</service>
|
|
</services>
|
|
<behaviors>
|
|
<serviceBehaviors>
|
|
<behavior name="TaskServiceBehavior">
|
|
<serviceMetadata/>
|
|
<serviceDebug includeExceptionDetailInFaults="true"/>
|
|
</behavior>
|
|
<behavior name="">
|
|
<serviceMetadata httpGetEnabled="true"/>
|
|
<serviceDebug includeExceptionDetailInFaults="true"/>
|
|
</behavior>
|
|
</serviceBehaviors>
|
|
</behaviors>
|
|
|
|
</system.serviceModel>
|
|
<startup>
|
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
|
|
</startup>
|
|
</configuration>
|