KestrunHostSessionExtensions.AddSession method

Adds session state services and middleware to the application.

public static KestrunHost AddSession(this KestrunHost host, SessionOptions? cfg)
parameter description
host The KestrunHost to add services to.
cfg The configuration options for session state.

Return Value

The updated KestrunHost instance.

See Also