How to Configure Reliability while communicating with WCF services?

Posted by Abhi88920 under WCF on 6/3/2016 | Points: 10 | Views : 2210 | Status : [Member] | Replies : 2
How to Configure Reliability while communicating with WCF services?




Responses

Posted by: Dinkey007 on: 6/3/2016 [Member] Starter | Points: 25

Up
0
Down
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>


Reliability is supported by following bindings only

NetTcpBinding

WSHttpBinding

WSFederationHttpBinding

WSDualHttpBinding

Source:-http://tech.queryhome.com/124475/configure-reliability-while-communicating-with-services?show=125771#a125771




Abhi88920, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: A2H on: 6/3/2016 [Member] [MVP] Silver | Points: 25

Up
0
Down
You can also configure the Reliability in WCF using the WCF Service Configuration Editor . You will get a wizard like option to update the details. You can check the link given below

https://blogs.msdn.microsoft.com/brunoterkaly/2013/10/26/wcf-bindings-how-to-implement-reliable-messaging/

Thanks,
A2H
My Blog

Abhi88920, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response