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.
152 lines
7.1 KiB
152 lines
7.1 KiB
<?xml version="1.0"?>
|
|
<configuration>
|
|
<configSections>
|
|
<!--日志组件配置-->
|
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
|
|
<section name="cachingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Caching.Configuration.CacheManagerSettings,Microsoft.Practices.EnterpriseLibrary.Caching, Version=5.0.414.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true"/>
|
|
</configSections>
|
|
<appSettings>
|
|
<!--服务中心调用凭据-->
|
|
<add key="ServiceCredential" value="123456"/>
|
|
<!--主服务状态监听端口-->
|
|
<add key="MainServicePort" value="16668"/>
|
|
</appSettings>
|
|
<connectionStrings>
|
|
<!--主数据库连接-->
|
|
<add name="maindb" connectionString="Data Source=libinghai;Initial Catalog=plmdb;User Id=sa;Password=qm;" providerName="System.Data.SqlClient"/>
|
|
</connectionStrings>
|
|
<!--缓存设置-->
|
|
<cachingConfiguration defaultCacheManager="Cache Manager">
|
|
<cacheManagers>
|
|
<add name="Cache Manager" type="Microsoft.Practices.EnterpriseLibrary.Caching.CacheManager,Microsoft.Practices.EnterpriseLibrary.Caching, Version=5.0.414.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35"
|
|
expirationPollFrequencyInSeconds="60" maximumElementsInCacheBeforeScavenging="1000"
|
|
numberToRemoveWhenScavenging="10" backingStoreName="NullBackingStore"/>
|
|
</cacheManagers>
|
|
<backingStores>
|
|
<add type="Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.NullBackingStore,Microsoft.Practices.EnterpriseLibrary.Caching, Version=5.0.414.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="NullBackingStore"/>
|
|
</backingStores>
|
|
</cachingConfiguration>
|
|
<!--日志组件配置-->
|
|
<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>
|
|
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" />
|
|
<bindings>
|
|
<netTcpBinding>
|
|
<binding name="NetTcpBinding" closeTimeout="00:30:00"
|
|
openTimeout="00:30:00" receiveTimeout="00:30:00" sendTimeout="00:30:00"
|
|
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
|
|
hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxBufferSize="2147483647"
|
|
maxReceivedMessageSize="2147483647">
|
|
<security mode="None"></security>
|
|
</binding>
|
|
</netTcpBinding>
|
|
</bindings>
|
|
<services>
|
|
<service behaviorConfiguration="netTcpBindingBehavior" name="QM.Exchange.Core.LoginService">
|
|
<endpoint address="" binding="netTcpBinding" bindingConfiguration="NetTcpBinding"
|
|
contract="QM.Exchange.Core.ILoginService">
|
|
<identity>
|
|
<dns value="localhost" />
|
|
</identity>
|
|
</endpoint>
|
|
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" />
|
|
<host>
|
|
<baseAddresses>
|
|
<add baseAddress="net.tcp://localhost:8979/LoginService/" />
|
|
</baseAddresses>
|
|
</host>
|
|
</service>
|
|
<service behaviorConfiguration="netTcpBindingBehavior" name="QM.Exchange.Core.DuplexMessageService">
|
|
<endpoint address="" binding="netTcpBinding" bindingConfiguration="NetTcpBinding"
|
|
contract="QM.Exchange.Core.IDuplexMessageService">
|
|
<identity>
|
|
<dns value="localhost" />
|
|
</identity>
|
|
</endpoint>
|
|
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" />
|
|
<host>
|
|
<baseAddresses>
|
|
<add baseAddress="net.tcp://localhost:8979/DuplexMessageService/" />
|
|
</baseAddresses>
|
|
</host>
|
|
</service>
|
|
<service behaviorConfiguration="netTcpBindingBehavior" name="QM.Exchange.Core.GeneralMessageService">
|
|
<endpoint address="" binding="netTcpBinding" bindingConfiguration="NetTcpBinding"
|
|
contract="QM.Exchange.Core.IGeneralMessageService">
|
|
<identity>
|
|
<dns value="localhost" />
|
|
</identity>
|
|
</endpoint>
|
|
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" />
|
|
<host>
|
|
<baseAddresses>
|
|
<add baseAddress="net.tcp://localhost:8979/GeneralMessageService/" />
|
|
</baseAddresses>
|
|
</host>
|
|
</service>
|
|
</services>
|
|
<behaviors>
|
|
<serviceBehaviors>
|
|
<behavior name="netTcpBindingBehavior">
|
|
<serviceMetadata />
|
|
<serviceDebug includeExceptionDetailInFaults="true" />
|
|
<serviceThrottling maxConcurrentCalls="1000" maxConcurrentSessions="1000"
|
|
maxConcurrentInstances="1000" />
|
|
</behavior>
|
|
<behavior name="">
|
|
<serviceMetadata httpGetEnabled="true" />
|
|
<serviceDebug includeExceptionDetailInFaults="false" />
|
|
</behavior>
|
|
</serviceBehaviors>
|
|
</behaviors>
|
|
</system.serviceModel>
|
|
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
|
|