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