Class KestrelConfigurator
Kestrel HTTP server configurator
public class KestrelConfigurator : IConfigurator<IWebHostBuilder>
- Inheritance
-
KestrelConfigurator
- Implements
- Inherited Members
- Extension Methods
Remarks
Supported config properties:
urls | semicolon (;) separated list of URL prefixes |
httpsCertFile | HTTPS X509 certificate file |
httpsCertPwd | password to access X509 certificate file |
Constructors
KestrelConfigurator()
Default ctor
public KestrelConfigurator()
KestrelConfigurator(IDictionary<string, string>?)
Ctor from config
dictionary
public KestrelConfigurator(IDictionary<string, string>? config)
Parameters
config
IDictionary<string, string>
Fields
CERTFILE_KEY
httpsCertFile config key
public const string CERTFILE_KEY = "httpsCertFile"
Field Value
CERTPWD_KEY
httpsCertPwd config key
public const string CERTPWD_KEY = "httpsCertPwd"
Field Value
URLS_KEY
urls config key
public const string URLS_KEY = "urls"
Field Value
Methods
AddTo(IWebHostBuilder, IConfiguration)
Adds the Kestrel configuration to the builder
.
public void AddTo(IWebHostBuilder builder, IConfiguration cfg)
Parameters
builder
IWebHostBuildercfg
IConfiguration