DistributedSessionStore(IDistributedCache, ILoggerFactory) 构造函数

定义

初始化 DistributedSessionStore 的新实例。

public:
 DistributedSessionStore(Microsoft::Extensions::Caching::Distributed::IDistributedCache ^ cache, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public DistributedSessionStore (Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Session.DistributedSessionStore : Microsoft.Extensions.Caching.Distributed.IDistributedCache * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Session.DistributedSessionStore
Public Sub New (cache As IDistributedCache, loggerFactory As ILoggerFactory)

参数

cache
IDistributedCache

IDistributedCache用于存储会话数据的 。

适用于