Bagikan melalui


MemoryDistributedCache Konstruktor

Definisi

Overload

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)

Membuat instans baru MemoryDistributedCache .

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)

Membuat instans baru MemoryDistributedCache .

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)

Sumber:
MemoryDistributedCache.cs
Sumber:
MemoryDistributedCache.cs
Sumber:
MemoryDistributedCache.cs
Sumber:
MemoryDistributedCache.cs
Sumber:
MemoryDistributedCache.cs

Membuat instans baru MemoryDistributedCache .

public:
 MemoryDistributedCache(Microsoft::Extensions::Options::IOptions<Microsoft::Extensions::Caching::Memory::MemoryDistributedCacheOptions ^> ^ optionsAccessor);
public MemoryDistributedCache (Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Caching.Memory.MemoryDistributedCacheOptions> optionsAccessor);
new Microsoft.Extensions.Caching.Distributed.MemoryDistributedCache : Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Caching.Memory.MemoryDistributedCacheOptions> -> Microsoft.Extensions.Caching.Distributed.MemoryDistributedCache
Public Sub New (optionsAccessor As IOptions(Of MemoryDistributedCacheOptions))

Parameter

optionsAccessor
IOptions<MemoryDistributedCacheOptions>

Opsi cache.

Berlaku untuk

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)

Sumber:
MemoryDistributedCache.cs
Sumber:
MemoryDistributedCache.cs
Sumber:
MemoryDistributedCache.cs
Sumber:
MemoryDistributedCache.cs
Sumber:
MemoryDistributedCache.cs

Membuat instans baru MemoryDistributedCache .

public:
 MemoryDistributedCache(Microsoft::Extensions::Options::IOptions<Microsoft::Extensions::Caching::Memory::MemoryDistributedCacheOptions ^> ^ optionsAccessor, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public MemoryDistributedCache (Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Caching.Memory.MemoryDistributedCacheOptions> optionsAccessor, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.Extensions.Caching.Distributed.MemoryDistributedCache : Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Caching.Memory.MemoryDistributedCacheOptions> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Extensions.Caching.Distributed.MemoryDistributedCache
Public Sub New (optionsAccessor As IOptions(Of MemoryDistributedCacheOptions), loggerFactory As ILoggerFactory)

Parameter

optionsAccessor
IOptions<MemoryDistributedCacheOptions>

Opsi cache.

loggerFactory
ILoggerFactory

Pabrik pencatat yang akan dibuat ILogger digunakan untuk mencatat pesan.

Berlaku untuk