Initialize() public method

public Initialize ( IConfiguration configuration ) : void
configuration IConfiguration
return void
Ejemplo n.º 1
0
 public IFeatureCollection Initialize(IConfiguration configuration)
 {
     var information = new KestrelServerInformation();
     information.Initialize(configuration);
     var serverFeatures = new FeatureCollection();
     serverFeatures.Set<IKestrelServerInformation>(information);
     serverFeatures.Set<IServerAddressesFeature>(information);
     return serverFeatures;
 }
Ejemplo n.º 2
0
        public IFeatureCollection Initialize(IConfiguration configuration)
        {
            var information = new KestrelServerInformation();

            information.Initialize(configuration);
            var serverFeatures = new FeatureCollection();

            serverFeatures.Set <IKestrelServerInformation>(information);
            serverFeatures.Set <IServerAddressesFeature>(information);
            return(serverFeatures);
        }