| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?xml version="1.0"?>
- <configuration>
- <configSections>
- <section name="muchinfo.serviceModel" type="Muchinfo.Consoles.ServiceModelConfigSection, Muchinfo.ServiceClients" />
- </configSections>
- <startup>
- <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
- </startup>
- <appSettings>
- <!--true:使用模拟数据, false:使用历史行情服务-->
- <add key="IsFakeData" value="true"/>
- <!--历史行情服务地址-测试用-->
- <add key="Quote_Address" value="192.168.30.62:4688"/>
- </appSettings>
- <system.serviceModel>
- <bindings>
- <customBinding>
- <!--行情组件使用-->
- <binding name="compactBinding">
- <compactMessageEncoding>
- <binaryMessageEncoding />
- </compactMessageEncoding>
- <tcpTransport maxBufferPoolSize="6553600" maxReceivedMessageSize="6553600"
- maxBufferSize="6553600" maxPendingConnections="20" maxPendingAccepts="2"
- listenBacklog="20">
- <connectionPoolSettings maxOutboundConnectionsPerEndpoint="20" />
- </tcpTransport>
- </binding>
- </customBinding>
- </bindings>
- <behaviors>
- <endpointBehaviors>
- <behavior name="Biz_Behavior">
- <dataContractSerializer ignoreExtensionDataObject="true" maxItemsInObjectGraph="6553600" />
- </behavior>
- </endpointBehaviors>
- </behaviors>
- <client>
- <!--行情应用服务配置(name必须为NullURL)-->
- <endpoint address="net.tcp://0.0.0.0" binding="customBinding" name="NullURL" bindingConfiguration="compactBinding"
- contract="Muchinfo.Quote.IQuoteApplicationService"/>
- </client>
- <!-- 扩展 -->
- <extensions>
- <!-- 绑定扩展 -->
- <bindingElementExtensions>
- <!-- 追加一种消息编码方式 (GZip压缩编码) -->
- <add name="compactMessageEncoding" type="Muchinfo.IO.Compressions.CompactMessageEncodingElement, Muchinfo.IO.Compressions"/>
- </bindingElementExtensions>
- </extensions>
- </system.serviceModel>
- </configuration>
|