CRVM-redis-6/Host/App.config
2025-11-07 02:02:31 +08:00

93 lines
3.5 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />
</startup>
<connectionStrings>
<!--使用 Sessionid 来实现推送数据信息适用于一台机器上有1个以上客户端-->
<!--使用 HostName 来实现推送数据信息适用于一台机器上只有1个客户端-->
<add name="SendMessageType" connectionString="Sessionid" />
</connectionStrings>
<system.serviceModel>
<!--
<services>
<service name="Host.Services" behaviorConfiguration="abc">
<endpoint address="" binding="wsDualHttpBinding" contract="Host.IServices" bindingConfiguration="wsdualbinding"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
<host>
<baseAddresses>
<add baseAddress="http://127.0.0.1:2000"/>
<add baseAddress="net.tcp://127.0.0.1:3000"/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="abc">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<wsDualHttpBinding>
<binding name="wsdualbinding"
closeTimeout="00:03:00"
maxReceivedMessageSize="500000"
maxBufferPoolSize="50000"
sendTimeout="00:03:00"
openTimeout="00:03:00"
receiveTimeout="00:03:00">
<security mode="None"/>
</binding>
</wsDualHttpBinding>
</bindings>
-->
<!-- wcf协议 -->
<bindings>
<netTcpBinding>
<binding name="DuplexBinding" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" sendTimeout="00:00:02" receiveTimeout="00:00:02">
<security mode="None" />
<reliableSession enabled="true" />
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binding>
</netTcpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="NewBehavior">
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service name="ICService.PushMessage" behaviorConfiguration="NewBehavior">
<endpoint address="net.tcp://192.168.77.2:50001/Services" binding="netTcpBinding" bindingConfiguration="DuplexBinding" contract="ICService.IPushMessage" />
</service>
</services>
</system.serviceModel>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /></startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>