SessionMiddlewareExtensions SessionMiddlewareExtensions SessionMiddlewareExtensions Class

Definition

Extension methods for adding the SessionMiddleware to an application.

public static class SessionMiddlewareExtensions
type SessionMiddlewareExtensions = class
Public Module SessionMiddlewareExtensions
Inheritance
SessionMiddlewareExtensionsSessionMiddlewareExtensionsSessionMiddlewareExtensions

Methods

UseSession(IApplicationBuilder) UseSession(IApplicationBuilder) UseSession(IApplicationBuilder)

Adds the SessionMiddleware to automatically enable session state for the application.

UseSession(IApplicationBuilder, SessionOptions) UseSession(IApplicationBuilder, SessionOptions) UseSession(IApplicationBuilder, SessionOptions)

Adds the SessionMiddleware to automatically enable session state for the application.

Applies to