KestrunSecurityMiddlewareExtensions.AddHostFiltering method (1 of 2)

Adds Host Filtering to the application using the specified configuration delegate.

public static KestrunHost AddHostFiltering(this KestrunHost host, 
    Action<HostFilteringOptions>? opts = null)
parameter description
host The KestrunHost instance to configure.
opts The delegate for configuring host filtering options.

Return Value

The updated KestrunHost instance.

See Also


KestrunSecurityMiddlewareExtensions.AddHostFiltering method (2 of 2)

Adds Host Filtering to the application using the specified HostFilteringOptions.

public static KestrunHost AddHostFiltering(this KestrunHost host, HostFilteringOptions opts)
parameter description
host The KestrunHost instance to configure.
opts The host filtering options.

Return Value

The updated KestrunHost instance.

See Also