Inheritance: IServerAddressesFeature, IRioSharpServerInformation
        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);
        }
Example #2
0
        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));
        }