SessionMiddleware(RequestDelegate, ILoggerFactory, IDataProtectionProvider, ISessionStore, IOptions<SessionOptions>) SessionMiddleware(RequestDelegate, ILoggerFactory, IDataProtectionProvider, ISessionStore, IOptions<SessionOptions>) SessionMiddleware(RequestDelegate, ILoggerFactory, IDataProtectionProvider, ISessionStore, IOptions<SessionOptions>) SessionMiddleware(RequestDelegate, ILoggerFactory, IDataProtectionProvider, ISessionStore, IOptions<SessionOptions>) Constructor

Definition

Creates a new SessionMiddleware.

public:
 SessionMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ dataProtectionProvider, Microsoft::AspNetCore::Session::ISessionStore ^ sessionStore, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::SessionOptions ^> ^ options);
public SessionMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider, Microsoft.AspNetCore.Session.ISessionStore sessionStore, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.SessionOptions> options);
new Microsoft.AspNetCore.Session.SessionMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.AspNetCore.DataProtection.IDataProtectionProvider * Microsoft.AspNetCore.Session.ISessionStore * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.SessionOptions> -> Microsoft.AspNetCore.Session.SessionMiddleware
Public Sub New (next As RequestDelegate, loggerFactory As ILoggerFactory, dataProtectionProvider As IDataProtectionProvider, sessionStore As ISessionStore, options As IOptions(Of SessionOptions))

Parameters

next
RequestDelegate RequestDelegate RequestDelegate RequestDelegate

The RequestDelegate representing the next middleware in the pipeline.

loggerFactory
Microsoft.Extensions.Logging.ILoggerFactory Microsoft.Extensions.Logging.ILoggerFactory Microsoft.Extensions.Logging.ILoggerFactory Microsoft.Extensions.Logging.ILoggerFactory

The Microsoft.Extensions.Logging.ILoggerFactory representing the factory that used to create logger instances.

sessionStore
ISessionStore ISessionStore ISessionStore ISessionStore

The ISessionStore representing the session store.

options
Microsoft.Extensions.Options.IOptions<SessionOptions>

The session configuration options.

Applies to