Created
September 9, 2012 12:04
-
-
Save davybrion/3684001 to your computer and use it in GitHub Desktop.
code snippets for "WCF and large amounts of data" post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <bindings> | |
| <netTcpBinding> | |
| <binding name="MyTcpBinding" maxReceivedMessageSize="2147483647" receiveTimeout="00:30" sendTimeout="00:30"> | |
| <readerQuotas maxStringContentLength="8192" maxArrayLength="20971520" /> | |
| </binding> | |
| </netTcpBinding> | |
| </bindings> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <behaviors> | |
| <serviceBehaviors> | |
| <behavior name="MyBehavior"> | |
| <dataContractSerializer maxItemsInObjectGraph="2147483647"/> | |
| <serviceMetadata /> | |
| </behavior> | |
| </serviceBehaviors> | |
| </behaviors> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <service name="Brion.Library.ServerSide.WCF.WcfRequestProcessor" behaviorConfiguration="MyBehavior"> | |
| <host> | |
| <baseAddresses> | |
| <add baseAddress="net.tcp://localhost/RequestProcessor"/> | |
| </baseAddresses> | |
| </host> | |
| <endpoint contract="Brion.Library.Common.WCF.IWcfRequestProcessor" binding="netTcpBinding" | |
| bindingConfiguration="MyTcpBinding" /> | |
| </service> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <client> | |
| <endpoint address="net.tcp://localhost/RequestProcessor" binding="netTcpBinding" | |
| name="IRequestProcessor" bindingConfiguration="MyTcpBinding" behaviorConfiguration="MyBehavior" | |
| contract="Brion.Library.Common.WCF.IWcfRequestProcessor" /> | |
| </client> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment