Inheritance: IWcfExtensionVisitor
		protected void ConfigureChannelFactory(ChannelFactory channelFactory, IWcfClientModel clientModel, IWcfBurden burden)
		{
			var extensions = new ChannelFactoryExtensions(channelFactory, Kernel)
				.Install(burden, new WcfChannelExtensions());

			var endpointExtensions = new ServiceEndpointExtensions(channelFactory.Endpoint, true, Kernel)
				.Install(burden, new WcfEndpointExtensions(WcfExtensionScope.Clients));

			if (clientModel != null)
			{
				extensions.Install(clientModel.Extensions, burden);
				endpointExtensions.Install(clientModel.Extensions, burden);
				endpointExtensions.Install(clientModel.Endpoint.Extensions, burden);
			}

			burden.Add(new ChannelFactoryHolder(channelFactory));
		}
Beispiel #2
0
        protected void ConfigureChannelFactory(ChannelFactory channelFactory, IWcfClientModel clientModel, IWcfBurden burden)
        {
            var extensions = new ChannelFactoryExtensions(channelFactory, Kernel)
                             .Install(burden, new WcfChannelExtensions());

            var endpointExtensions = new ServiceEndpointExtensions(channelFactory.Endpoint, true, Kernel)
                                     .Install(burden, new WcfEndpointExtensions(WcfExtensionScope.Clients));

            if (clientModel != null)
            {
                extensions.Install(clientModel.Extensions, burden);
                endpointExtensions.Install(clientModel.Extensions, burden);
                endpointExtensions.Install(clientModel.Endpoint.Extensions, burden);
            }

            burden.Add(new ChannelFactoryHolder(channelFactory));
        }