共用方式為


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用來儲存會話資料的 。

loggerFactory
ILoggerFactory

ILoggerFactory

適用於