Aracılığıyla paylaş


SessionMiddleware Oluşturucu

Tanım

Yeni bir SessionMiddleware oluşturur.

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))

Parametreler

next
RequestDelegate

İşlem RequestDelegate hattında bir sonraki ara yazılımı temsil eden.

loggerFactory
ILoggerFactory

Günlükçü ILoggerFactory örnekleri oluşturmak için kullanılan fabrikayı temsil eden.

dataProtectionProvider
IDataProtectionProvider

Tanımlama IDataProtectionProvider bilgisini korumak ve doğrulamak için kullanılır.

sessionStore
ISessionStore

ISessionStore Oturum depoyu temsil eden.

options
IOptions<SessionOptions>

Oturum yapılandırma seçenekleri.

Şunlara uygulanır