当前位置: 首页>>代码示例>>C#>>正文


C# BindingContext.BuildInnerChannelFactory方法代码示例

本文整理汇总了C#中BindingContext.BuildInnerChannelFactory方法的典型用法代码示例。如果您正苦于以下问题:C# BindingContext.BuildInnerChannelFactory方法的具体用法?C# BindingContext.BuildInnerChannelFactory怎么用?C# BindingContext.BuildInnerChannelFactory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BindingContext的用法示例。


在下文中一共展示了BindingContext.BuildInnerChannelFactory方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: BuildChannelFactoryIgnoresRemaining

		public void BuildChannelFactoryIgnoresRemaining ()
		{
			BindingContext ctx = new BindingContext (
				new CustomBinding (
					new HttpTransportBindingElement (),
					new InvalidBindingElement ()),
				empty_params);
			ctx.BuildInnerChannelFactory<IRequestChannel> ();
		}
开发者ID:stabbylambda,项目名称:mono,代码行数:9,代码来源:HttpTransportBindingElementTest.cs

示例2: CreateChannelWithoutOpen

		public void CreateChannelWithoutOpen ()
		{
			BindingContext ctx = new BindingContext (
				new CustomBinding (
					new HttpTransportBindingElement ()),
				empty_params);
			// returns HttpChannelFactory
			IChannelFactory<IRequestChannel> f =
				ctx.BuildInnerChannelFactory<IRequestChannel> ();
			IChannel c = f.CreateChannel (new EndpointAddress (
				"http://www.mono-project.com"));
		}
开发者ID:stabbylambda,项目名称:mono,代码行数:12,代码来源:HttpTransportBindingElementTest.cs

示例3: BuildChannelFactoryHttpNoMessage

		// with July CTP it still works ...
		public void BuildChannelFactoryHttpNoMessage ()
		{
			BindingContext ctx = new BindingContext (
				new CustomBinding (
					new HttpTransportBindingElement ()),
				empty_params);
			IChannelFactory<IRequestChannel> cf =
				ctx.BuildInnerChannelFactory<IRequestChannel> ();
			cf.Open ();
		}
开发者ID:stabbylambda,项目名称:mono,代码行数:11,代码来源:HttpTransportBindingElementTest.cs

示例4: CreateChannelInvalidScheme

		public void CreateChannelInvalidScheme ()
		{
			MsmqTransportBindingElement be =
				new MsmqTransportBindingElement ();
			// Without settings them, it borks when MSMQ setup
			// does not support AD integration.
			be.MsmqTransportSecurity.MsmqAuthenticationMode =
				MsmqAuthenticationMode.None;
			be.MsmqTransportSecurity.MsmqProtectionLevel =
				ProtectionLevel.None;

			BindingContext ctx = new BindingContext (
				new CustomBinding (be),
				empty_params);
			// returns MsmqChannelFactory
			IChannelFactory<IOutputChannel> f =
				ctx.BuildInnerChannelFactory<IOutputChannel> ();
			f.Open ();
			f.CreateChannel (new EndpointAddress ("stream:dummy"));
		}
开发者ID:nickchal,项目名称:pash,代码行数:20,代码来源:MsmqTransportBindingElementTest.cs


注:本文中的BindingContext.BuildInnerChannelFactory方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。