static void Main() { // <Snippet3> // <Snippet0> // <Snippet1> TcpTransportBindingElement bElement = new TcpTransportBindingElement(); // </Snippet1> TcpConnectionPoolSettings connectionPoolSettings = bElement.ConnectionPoolSettings; // </Snippet0> // </Snippet3> // <Snippet4> int listenBacklog = bElement.ListenBacklog; // </Snippet4> // <Snippet5> bool portSharingEnabled = bElement.PortSharingEnabled; // </Snippet5> // <Snippet6> string scheme = bElement.Scheme; // </Snippet6> // <Snippet7> bool teredoEnabled = bElement.TeredoEnabled; // </Snippet7> // <Snippet8> BindingElement bElementClone = bElement.Clone(); // </Snippet8> // <Snippet11> BasicHttpBinding binding = new BasicHttpBinding(); ISecurityCapabilities b = binding.GetProperty <ISecurityCapabilities> (new BindingParameterCollection()); bool SupportsServerAuthentication = b.SupportsServerAuthentication; // </Snippet11> }
BindingElement GetTransport() { return(transport.Clone()); }