75 lines
3.4 KiB
XML
75 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<configuration>
|
|
<configSections>
|
|
<section name="eas" type="EAS.ConfigHandler,EAS.MicroKernel" />
|
|
</configSections>
|
|
<startup useLegacyV2RuntimeActivationPolicy="true">
|
|
<supportedRuntime version="v4.0"/>
|
|
</startup>
|
|
<eas>
|
|
<configurations>
|
|
<item name="Key" value="Value" />
|
|
</configurations>
|
|
<appserver>
|
|
<channel>
|
|
<wcf enable="true">
|
|
<config tcpPort="6607" httpPort="6608"/>
|
|
<serviceThrottling maxConcurrentCalls="128" maxConcurrentInstances="128" maxConcurrentSessions="256"/>
|
|
<wcfServices>
|
|
<wcfService key="Key" type="TValue"/>
|
|
</wcfServices>
|
|
</wcf>
|
|
<socket enable ="true">
|
|
<config tcpPort="6606"/>
|
|
<serviceThrottling maxConcurrence="6400"/>
|
|
<socketServices>
|
|
<socketService key="IMSocketService" type="AgileIM.Service.IMSocketService,AgileIM.Service"/>
|
|
</socketServices>
|
|
</socket>
|
|
</channel>
|
|
<appServices>
|
|
<appService key="Key" type="TValue"/>
|
|
</appServices>
|
|
</appserver>
|
|
<objects>
|
|
<object name="DbProvider" assembly="EAS.Data" type="EAS.Data.Access.SqlClientDbProvider" LifestyleType="Thread">
|
|
<property name="ConnectionString" type="string" value="Data Source=.;Initial Catalog=eas_db;Integrated Security=SSPI;Connect Timeout=30" />
|
|
</object>
|
|
<!--数据访问器-->
|
|
<object name="DataAccessor" assembly="EAS.Data" type="EAS.Data.Access.DataAccessor" LifestyleType="Thread">
|
|
<property name="DbProvider" type="object" value="DbProvider"/>
|
|
<property name="Language" type="object" value="TSqlLanguage"/>
|
|
</object>
|
|
<!--ORM访问器-->
|
|
<object name="OrmAccessor" assembly="EAS.Data" type="EAS.Data.ORM.OrmAccessor" LifestyleType="Thread">
|
|
<property name="DataAccessor" type="object" value="DataAccessor"/>
|
|
<property name="DataNotifier" type="object" value="DataNotifier"/>
|
|
</object>
|
|
<!--数据通知程序-->
|
|
<object name="DataNotifier" assembly="EAS.Data" type="EAS.Data.ORM.SocketBusDataNotifier" LifestyleType="Singleton">
|
|
<property name="MessageBus" type="object" value="MessageBus"/>
|
|
</object>
|
|
<!--消息总线-->
|
|
<object name="MessageBus" assembly="EAS.MicroKernel" type="EAS.Sockets.Bus.SocketBus" LifestyleType="Singleton">
|
|
<property name="Url" type="string" value="socket.tcp://127.0.0.1:6606/"/>
|
|
</object>
|
|
<!--查询语言-->
|
|
<object name="TSqlLanguage" assembly="EAS.Data" type="EAS.Data.Linq.TSqlLanguage" LifestyleType="Thread"/>
|
|
<!--直连服务桥-->
|
|
<object name="ServiceBridger" assembly="EAS.MicroKernel" type="EAS.Services.DirectServiceBridger" LifestyleType="Singleton" >
|
|
<property name="AutoLoad" type="bool" value="true"/>
|
|
</object>-->
|
|
<!--日志管理-->
|
|
<object name="Logger" assembly="EAS.MicroKernel" type="EAS.Loggers.TextLogger" LifestyleType="Singleton">
|
|
<property name="Path" type="string" value="..\logs" />
|
|
</object>
|
|
<!--分布式服务上下文参数定义。-->
|
|
<object name="EAS.Distributed.ServiceContext" type="EAS.Distributed.ServiceContext,EAS.SOA.BootStrap" LifestyleType="Singleton">
|
|
<property name="UseToken" type="bool" value="false" />
|
|
<property name="EnableLogging" type="bool" value="false" />
|
|
</object>
|
|
</objects>
|
|
</eas>
|
|
</configuration>
|
|
|