public IServer CreateServer(IConfiguration configuration) { var information = new RioSharpServerInformation(); information.Initialize(configuration); var serverFeatures = new FeatureCollection(); serverFeatures.Set<IRioSharpServerInformation>(information); serverFeatures.Set<IServerAddressesFeature>(information); return new RioSharpServer(serverFeatures, _appLifetime, _loggerFactory.CreateLogger("RioSharp.Aspnet"), _httpContextFactory); }
public IServer CreateServer(IConfiguration configuration) { var information = new RioSharpServerInformation(); information.Initialize(configuration); var serverFeatures = new FeatureCollection(); serverFeatures.Set <IRioSharpServerInformation>(information); serverFeatures.Set <IServerAddressesFeature>(information); return(new RioSharpServer(serverFeatures, _appLifetime, _loggerFactory.CreateLogger("RioSharp.Aspnet"), _httpContextFactory)); }