Table of Contents

Class KestrelConfigurator

Namespace
Tlabs.Config
Assembly
Tlabs.SrvBase.dll

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
httpsCertFileHTTPS X509 certificate file
httpsCertPwdpassword 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

string

CERTPWD_KEY

httpsCertPwd config key

public const string CERTPWD_KEY = "httpsCertPwd"

Field Value

string

URLS_KEY

urls config key

public const string URLS_KEY = "urls"

Field Value

string

Methods

AddTo(IWebHostBuilder, IConfiguration)

Adds the Kestrel configuration to the builder.

public void AddTo(IWebHostBuilder builder, IConfiguration cfg)

Parameters

builder IWebHostBuilder
cfg IConfiguration