Castle.Facilities.WcfIntegration.WcfChannelExtensions.BindChannelFactoryAware C# (CSharp) Method

BindChannelFactoryAware() private static method

private static BindChannelFactoryAware ( System.ServiceModel.ChannelFactory channelFactory, IKernel kernel, IWcfBurden burden ) : void
channelFactory System.ServiceModel.ChannelFactory
kernel IKernel
burden IWcfBurden
return void
		private static void BindChannelFactoryAware(ChannelFactory channelFactory, IKernel kernel, IWcfBurden burden)
		{
			WcfUtils.AddBehaviors<IWcfPolicy>(kernel, WcfExtensionScope.Undefined, null, burden, null);
			WcfUtils.AddBehaviors<IChannelFactoryAware>(kernel, WcfExtensionScope.Clients, null, burden,
				channelFactoryAware =>
				{
					WcfUtils.BindChannelFactoryAware(channelFactory, channelFactoryAware, true);
					return true;
				});
		}
	}