public KestrelServer(
     IOptions <KestrelServerOptions> options,
     IEnumerable <IConnectionListenerFactory> transportFactories,
     ILoggerFactory loggerFactory)
 {
     _innerKestrelServer = new KestrelServerImpl(options, transportFactories, loggerFactory);
 }
 // For testing
 internal KestrelServer(IEnumerable <IConnectionListenerFactory> transportFactories, ServiceContext serviceContext)
 {
     _innerKestrelServer = new KestrelServerImpl(transportFactories, serviceContext);
 }
Beispiel #3
0
 public KestrelServer(IOptions <KestrelServerOptions> options, IConnectionListenerFactory transportFactory, ILoggerFactory loggerFactory)
 {
     _innerKestrelServer = new KestrelServerImpl(
         options,
         new[] { transportFactory ?? throw new ArgumentNullException(nameof(transportFactory)) },