Home » » How to configure Reliability while communicating with WCF Services?

How to configure Reliability while communicating with WCF Services?

Written By M.L on திங்கள், 22 ஆகஸ்ட், 2011 | ஆகஸ்ட் 22, 2011

Reliability can be configured in the client config file by adding reliableSession under binding tag.
<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

0 comments:

கருத்துரையிடுக

Popular Posts

General Category