public ConfiguredServiceHost(ITypedHostFactory factory, IModuleLogger parentLogger, EndpointCollector endpointCollector, PortConfig portConfig) { _factory = factory; _collector = endpointCollector; _portConfig = portConfig; if (parentLogger != null) { _logger = parentLogger.GetChild("WcfHosting", GetType()); } }
/// <inheritdoc /> public IConfiguredServiceHost CreateHost <T>(HostConfig config, ITypedHostFactory hostFactory, IModuleLogger logger) { var collector = _container.Resolve <IEndpointCollector>(); // Create instance and fill using given container var host = new ConfiguredServiceHost(hostFactory, logger, collector, _portConfig); host.Setup <T>(config); return(host); }
/// <inheritdoc /> public IConfiguredServiceHost CreateHost <TContract>(HostConfig config, ITypedHostFactory hostFactory, IModuleLogger logger) => CreateHost(typeof(TContract), config, hostFactory, logger);