コード例 #1
0
        internal KestrelConfigurationLoader(
            KestrelServerOptions options,
            IConfiguration configuration,
            IHostEnvironment hostEnvironment,
            bool reloadOnChange,
            ILogger <KestrelServer> logger,
            ILogger <HttpsConnectionMiddleware> httpsLogger)
        {
            Options         = options ?? throw new ArgumentNullException(nameof(options));
            Configuration   = configuration ?? throw new ArgumentNullException(nameof(configuration));
            HostEnvironment = hostEnvironment ?? throw new ArgumentNullException(nameof(hostEnvironment));
            Logger          = logger ?? throw new ArgumentNullException(nameof(logger));
            HttpsLogger     = httpsLogger ?? throw new ArgumentNullException(nameof(logger));

            ReloadOnChange = reloadOnChange;

            ConfigurationReader     = new ConfigurationReader(configuration);
            CertificateConfigLoader = new CertificateConfigLoader(hostEnvironment, logger);
        }
コード例 #2
0
 internal KestrelConfigurationLoader(KestrelServerOptions options, IConfiguration configuration)
 {
     Options             = options ?? throw new ArgumentNullException(nameof(options));
     Configuration       = configuration ?? throw new ArgumentNullException(nameof(configuration));
     ConfigurationReader = new ConfigurationReader(Configuration);
 }
コード例 #3
0
 internal KestrelConfigurationLoader(KestrelServerOptions options, IConfiguration configuration, bool reloadOnChange)
 {
     Options        = options ?? throw new ArgumentNullException(nameof(options));
     Configuration  = configuration ?? throw new ArgumentNullException(nameof(configuration));
     ReloadOnChange = reloadOnChange;
 }