Ejemplo n.º 1
0
        public void BuildChannelFactoryFail2()
        {
            MessageEncodingBindingElement be =
                new MyEncodingBindingElement();
            BindingContext ctx = new BindingContext(
                // no transport -> fail
                new CustomBinding(
                    new TextMessageEncodingBindingElement()),
                new BindingParameterCollection());

            be.BuildChannelFactory <IRequestChannel> (ctx);
        }
Ejemplo n.º 2
0
        public void BuildChannelFactory2()
        {
            MessageEncodingBindingElement be =
                new MyEncodingBindingElement();
            BindingContext ctx = new BindingContext(
                new CustomBinding(
                    new HttpTransportBindingElement()),
                new BindingParameterCollection());

            // hmm, it returns HttpChannelFactory, not sure
            // if TextMessageEncodingBindingElement is considered.
            be.BuildChannelFactory <IRequestChannel> (ctx);
        }
		public void BuildChannelFactory2 ()
		{
			MessageEncodingBindingElement be =
				new MyEncodingBindingElement ();
			BindingContext ctx = new BindingContext (
				new CustomBinding (
					new HttpTransportBindingElement ()),
				new BindingParameterCollection ());
			// hmm, it returns HttpChannelFactory, not sure
			// if TextMessageEncodingBindingElement is considered.
			be.BuildChannelFactory<IRequestChannel> (ctx);
		}
		public void BuildChannelFactoryFail2 ()
		{
			MessageEncodingBindingElement be =
				new MyEncodingBindingElement ();
			BindingContext ctx = new BindingContext (
				// no transport -> fail
				new CustomBinding (
					new TextMessageEncodingBindingElement ()),
				new BindingParameterCollection ());
			be.BuildChannelFactory<IRequestChannel> (ctx);
		}