예제 #1
0
        void VerifyContextBinding()
        {
            BindingElementCollection elements = Endpoint.Binding.CreateBindingElements();

            if (elements.Contains(typeof(ContextBindingElement)))
            {
                return;
            }
            throw new InvalidOperationException("Can only use a context binding with " + GetType());
        }
 static bool EndpointIsDual(ServiceEndpoint endpoint, BindingElementCollection elements)
 {
     return(elements.Contains(typeof(CompositeDuplexBindingElement)));
 }
 static bool EndpointIsDual(ServiceEndpoint endpoint, BindingElementCollection elements)
 {
     return elements.Contains(typeof(CompositeDuplexBindingElement));
 }