예제 #1
0
        // check that properties of the HttpTransportBindingElement and
        // MessageEncodingBindingElement not exposed as properties on BasicHttpBinding
        // match default values of the binding elements
        private bool IsBindingElementsMatch(TcpTransportBindingElement transport, BinaryMessageEncodingBindingElement encoding)
        {
            if (!_transport.IsMatch(transport))
            {
                return(false);
            }

            if (!_encoding.IsMatch(encoding))
            {
                return(false);
            }

            if (!_context.IsMatch(_context))
            {
                return(false);
            }

            if (_reliableSession.Enabled)
            {
                if (!_session.IsMatch(_session))
                {
                    return(false);
                }
            }

            return(true);
        }
예제 #2
0
        // check that properties of the HttpTransportBindingElement and
        // MessageEncodingBindingElement not exposed as properties on BasicHttpBinding
        // match default values of the binding elements
        private bool IsBindingElementsMatch(TcpTransportBindingElement transport, BinaryMessageEncodingBindingElement encoding)
        {
            if (!_transport.IsMatch(transport))
            {
                return(false);
            }

            if (!_encoding.IsMatch(encoding))
            {
                return(false);
            }

            return(true);
        }