コード例 #1
0
        public void BuildChannelFactory_CreateChannelNullVia()
        {
            var ctx = new BindingContext(new CustomBinding(), empty_params);
            var cf  = new HttpTransportBindingElement().BuildChannelFactory <IRequestChannel> (ctx);

            Assert.IsTrue(cf is ChannelFactoryBase <IRequestChannel>, "#1");
            cf.Open();
            cf.CreateChannel(new EndpointAddress("http://localhost:" + NetworkHelpers.FindFreePort()), null);
        }
コード例 #2
0
		public void BuildChannelFactory_CreateChannelNullVia ()
		{
			var ctx = new BindingContext (new CustomBinding (), empty_params);
			var cf = new HttpTransportBindingElement ().BuildChannelFactory<IRequestChannel> (ctx);
			Assert.IsTrue (cf is ChannelFactoryBase<IRequestChannel>, "#1");
			cf.Open ();
			cf.CreateChannel (new EndpointAddress ("http://localhost:8080"), null);
		}