コード例 #1
0
        public ConfiguredServiceHost(ITypedHostFactory factory, IModuleLogger parentLogger, EndpointCollector endpointCollector, PortConfig portConfig)
        {
            _factory    = factory;
            _collector  = endpointCollector;
            _portConfig = portConfig;

            if (parentLogger != null)
            {
                _logger = parentLogger.GetChild("WcfHosting", GetType());
            }
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
 /// <inheritdoc />
 public IConfiguredServiceHost CreateHost <TContract>(HostConfig config, ITypedHostFactory hostFactory, IModuleLogger logger) =>
 CreateHost(typeof(TContract), config, hostFactory, logger);