suppose i have one wcf service with multiple endpoint having different type of binding like tcp, basichttp, wshttp etc.
<endpoint address ="" binding="wsHttpBinding"
contract="NorthwindServices.ServiceContracts.ICustomerService"
bindingNamespace = "http://dotnetmentors.com/services/customer" />
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange"/>
<endpoint address ="" binding ="netNamedPipeBinding"
contract ="NorthwindServices.ServiceContracts.ICustomerService"
bindingNamespace = "http://dotnetmentors.com/services/customer" />
<endpoint address="mex" binding="mexNamedPipeBinding"
contract="IMetadataExchange"/>
so client can call my service using any endpoint having different binding. when client make call and when request will go to service end then how could i programmatically detect which binding client is using...is it tcp, basichttp, wshttp ?
so guide me with code sample which help me to detect from service that which protocol & binding client is using. thanks