public void BuildChannelFactoryFail1 ()
		{
			MessageEncodingBindingElement be =
				new TextMessageEncodingBindingElement ();
			BindingContext ctx = new BindingContext (
				// no transport -> fail
				new CustomBinding (),
				new BindingParameterCollection ());
			be.BuildChannelFactory<IRequestChannel> (ctx);
		}
Exemplo n.º 2
0
        public void BuildChannelFactoryFail1()
        {
            MessageEncodingBindingElement be =
                new TextMessageEncodingBindingElement();
            BindingContext ctx = new BindingContext(
                // no transport -> fail
                new CustomBinding(),
                new BindingParameterCollection());

            be.BuildChannelFactory <IRequestChannel> (ctx);
        }
		public void BuildChannelFactory1 ()
		{
			MessageEncodingBindingElement be =
				new TextMessageEncodingBindingElement ();
			BindingContext ctx = new BindingContext (
				new CustomBinding (
					new HttpTransportBindingElement ()),
				new BindingParameterCollection ());
			// hmm, it returns HttpChannelFactory, not sure
			// if TextMessageEncodingBindingElement is considered.
			be.BuildChannelFactory<IRequestChannel> (ctx);
		}
Exemplo n.º 4
0
        public void BuildChannelFactory1()
        {
            MessageEncodingBindingElement be =
                new TextMessageEncodingBindingElement();
            BindingContext ctx = new BindingContext(
                new CustomBinding(
                    new HttpTransportBindingElement()),
                new BindingParameterCollection());

            // hmm, it returns HttpChannelFactory, not sure
            // if TextMessageEncodingBindingElement is considered.
            be.BuildChannelFactory <IRequestChannel> (ctx);
        }
Exemplo n.º 5
0
        public void DuplicateMesageEncodingBindingElementError()
        {
            BindingContext ctx = new BindingContext(
                new CustomBinding(
                    new TextMessageEncodingBindingElement(),
                    new HttpTransportBindingElement()),
                new BindingParameterCollection());

            TextMessageEncodingBindingElement te =
                new TextMessageEncodingBindingElement();

            te.BuildChannelFactory <IRequestChannel> (ctx);
        }
		public void DuplicateMesageEncodingBindingElementError ()
		{
			BindingContext ctx = new BindingContext (
				new CustomBinding (
					new TextMessageEncodingBindingElement (),
					new HttpTransportBindingElement ()),
				new BindingParameterCollection ());

			TextMessageEncodingBindingElement te =
				new TextMessageEncodingBindingElement ();
			te.BuildChannelFactory<IRequestChannel> (ctx);
		}