public IEndpointHost CreateHost(Type endpoint, object config) { var hostConfig = config as HostConfig; if (hostConfig == null) { throw new ArgumentException("Wcf hosting requires config of type HostConfig"); } return((IEndpointHost)_hostFactory.CreateHost(endpoint, hostConfig, Factory, Logger)); }
public IConfiguredServiceHost CreateHost <TContract>(HostConfig config) { return(_hostFactory.CreateHost <TContract>(config, Factory, Logger)); }