How to Configure Reliability while communicating with WCF services?

abhik

New member
Joined
Jul 15, 2016
Messages
1
Programming Experience
Beginner
Hiiii,

How to Configure Reliability while communicating with WCF services?
 
Hiii,
i think this answer will solve your problem.
Reliability can be configured in the client config file by adding reliable Session under binding tag.

<system.serviceModel>

<services>

<service name = "MyService">

<endpoint

address = "net.tcp://localhost:8888/MyService"

binding = "netTcpBinding"

bindingConfiguration = "ReliableCommunication"

contract = "IMyContract"

/>

</service>

</services>

<bindings>

<netTcpBinding>

<binding name = "ReliableCommunication">

<reliableSession enabled = "true"/>

</binding>

</netTcpBinding>

</bindings>

</system.serviceModel>
[h=3]Reliability is supported by following bindings only
[/h]1. NetTcpBinding

2. WSHttpBinding

3. WSFederationHttpBinding

4. WSDualHttpBinding

Source:-How to Configure Reliability while communicating with WCF services?
 

Latest posts

Back
Top Bottom