Beispiel #1
0
        public override BindingElementCollection CreateBindingElements()
        {
            var mbe = new BinaryMessageEncodingBindingElement();

            if (ReaderQuotas != null)
            {
                ReaderQuotas.CopyTo(mbe.ReaderQuotas);
            }

            return(new BindingElementCollection(new BindingElement [] { mbe, transport.Clone() }));
        }
Beispiel #2
0
        static void Main()
        {
            // protected
            // NamedPipeTransportBindingElement bElementClone =
            //  new NamedPipeTransportBindingElement(bElement);

            // <Snippet3>
            // <Snippet2>
            // <Snippet0>
            // <Snippet1>
            NamedPipeTransportBindingElement bElement =
                new NamedPipeTransportBindingElement();
            // </Snippet1>

            NamedPipeConnectionPoolSettings connectionPoolSettings =
                bElement.ConnectionPoolSettings;
            // </Snippet0>
            // </Snippet2>
            // </Snippet3>

            // <Snippet4>
            string scheme =
                bElement.Scheme;
            // </Snippet4>

            // <Snippet5>
            BindingElement bElementCopy =
                bElement.Clone();
            // </Snippet5>

            // <Snippet8>
            BasicHttpBinding      binding = new BasicHttpBinding();
            ISecurityCapabilities b       =
                binding.GetProperty <ISecurityCapabilities>
                    (new BindingParameterCollection());

            bool SupportsServerAuthentication =
                b.SupportsServerAuthentication;
            // </Snippet8>
        }