Compartir a través de


SessionMiddleware Constructor

Definición

Crea un nuevo 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))

Parámetros

next
RequestDelegate

RequestDelegate que representa el siguiente middleware de la canalización.

loggerFactory
ILoggerFactory

ILoggerFactory que representa el generador que se usó para crear instancias del registrador.

dataProtectionProvider
IDataProtectionProvider

utilizado IDataProtectionProvider para proteger y comprobar la cookie.

sessionStore
ISessionStore

ISessionStore que representa el almacén de sesiones.

options
IOptions<SessionOptions>

Las opciones de configuración de la sesión.

Se aplica a