public MsQuicConnectionFactory(IOptions <MsQuicTransportOptions> options, IHostApplicationLifetime lifetime, ILoggerFactory loggerFactory) { if (options == null) { throw new ArgumentNullException(nameof(options)); } _api = new MsQuicApi(); var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Server.Kestrel.Transport.MsQuic.Client"); var trace = new MsQuicTrace(logger); _transportContext = new MsQuicTransportContext(lifetime, trace, options.Value); }
public MsQuicTransportFactory(IHostApplicationLifetime applicationLifetime, ILoggerFactory loggerFactory, IOptions <MsQuicTransportOptions> options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } if (loggerFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Server.Kestrel.Transport.MsQuic"); _log = new MsQuicTrace(logger); _applicationLifetime = applicationLifetime; _options = options.Value; }