Partager via


SessionMiddleware Constructeur

Définition

Crée un 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))

Paramètres

next
RequestDelegate

RequestDelegate représentant le middleware suivant dans le pipeline.

loggerFactory
ILoggerFactory

ILoggerFactory représentant la fabrique utilisée pour créer des instances d’enregistreur d’événements.

dataProtectionProvider
IDataProtectionProvider

IDataProtectionProvider utilisé pour protéger et vérifier le cookie.

sessionStore
ISessionStore

ISessionStore représentant le magasin de session.

options
IOptions<SessionOptions>

Options de configuration de session.

S’applique à