<?xml version="1.0"?> <configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> <system.serviceModel> <extensions> <bindingElementExtensions> <add name="compression" type="GlobalCommonLib.GZipMessageEncodingElement, GlobalCommonLib"/> </bindingElementExtensions> </extensions> <bindings> <wsHttpBinding> <binding name="securityForwsHttp" maxReceivedMessageSize="2147483647" transactionFlow="true" receiveTimeout="infinite" sendTimeout="01:00:00"> <security mode="Transport"> </security> <readerQuotas maxDepth="200" maxStringContentLength="2147483647" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/> </binding> </wsHttpBinding> <netTcpBinding> <binding name="securityNetBinding" receiveTimeout="00:10:00" sendTimeout="00:10:00" maxReceivedMessageSize="2147483647"> <readerQuotas maxDepth="200" maxStringContentLength="2147483647" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <security mode="Transport"> <transport protectionLevel="EncryptAndSign" /> </security> </binding> </netTcpBinding> <basicHttpBinding> <binding receiveTimeout="infinite" sendTimeout="01:00:00"/> </basicHttpBinding> <customBinding> <binding name="secureCustomBinding" receiveTimeout="infinite" sendTimeout="01:00:00"> <compression innerMessageEncoding="textMessageEncoding" compressionAlgorithm="GZip"/> <httpTransport manualAddressing="false" authenticationScheme="Anonymous" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" proxyAuthenticationScheme="Anonymous" realm="" useDefaultWebProxy="true"/> </binding> </customBinding> </bindings> <client> <endpoint name="ServiceA" address="net.tcp://localhost:9092/ServiceA" binding="netTcpBinding" bindingConfiguration="securityNetBinding" contract="*"/> <endpoint name="ServiceB" address="net.tcp://localhost:9093/ServiceB" binding="netTcpBinding" bindingConfiguration="securityNetBinding" contract="*"/> </client> <routing> <filters> <filter name="RegisterServiceAFilter" filterData="IServiceA" customType="RoutingServicePOC.Filter.ActionMessageFilter, RoutingServicePOC" filterType="Custom" /> <filter name="RegisterServiceBFilter" filterData="IServiceB" customType="RoutingServicePOC.Filter.ActionMessageFilter, RoutingServicePOC" filterType="Custom" /> </filters> <filterTables> <filterTable name="CentralRoutingTable"> <add filterName="RegisterServiceAFilter" endpointName="ServiceA" priority="0"/> <add filterName="RegisterServiceBFilter" endpointName="ServiceB" priority="0"/> </filterTable> </filterTables> </routing> <behaviors> <serviceBehaviors> <behavior name="RoutingBehavior"> <routing routeOnHeadersOnly="true" filterTableName="CentralRoutingTable" /> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="true" /> </behavior> </serviceBehaviors> </behaviors> <services> <service behaviorConfiguration="RoutingBehavior" name="System.ServiceModel.Routing.RoutingService"> <endpoint binding="customBinding" bindingConfiguration="secureCustomBinding" name="RoutingEndpoint" contract="System.ServiceModel.Routing.IRequestReplyRouter" /> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> </services> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> </configuration>
By viewing downloads associated with this article you agree to the Terms of use and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
The Next Version of Android - Some of What's Coming