top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to Configure Reliability while communicating with WCF services?

+1 vote
421 views
How to Configure Reliability while communicating with WCF services?
posted May 5, 2016 by Jdk

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

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

answer May 19, 2016 by Manikandan J
...