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)); }
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)); }