Sdílet prostřednictvím


RedisDataProtectionBuilderExtensions.PersistKeysToRedis Metoda

Definice

Přetížení

PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer)

Nakonfiguruje systém ochrany dat tak, aby uchovával klíče k výchozímu klíči (DataProtection-Keys) v databázi Redis.

PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey)

Nakonfiguruje systém ochrany dat tak, aby uchovával klíče k zadanému klíči v databázi Redis.

PersistKeysToRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey)

Nakonfiguruje systém ochrany dat tak, aby uchovával klíče pro zadaný klíč v databázi Redis.

PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer)

Zdroj:
RedisDataProtectionBuilderExtensions.cs

Nakonfiguruje systém ochrany dat tak, aby uchovával klíče k výchozímu klíči (DataProtection-Keys) v databázi Redis.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToRedis(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, StackExchange::Redis::IConnectionMultiplexer ^ connectionMultiplexer);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToRedis (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, StackExchange.Redis.IConnectionMultiplexer connectionMultiplexer);
static member PersistKeysToRedis : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * StackExchange.Redis.IConnectionMultiplexer -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToRedis (builder As IDataProtectionBuilder, connectionMultiplexer As IConnectionMultiplexer) As IDataProtectionBuilder

Parametry

builder
IDataProtectionBuilder

Instance tvůrce, která se má upravit.

connectionMultiplexer
StackExchange.Redis.IConnectionMultiplexer

Pro StackExchange.Redis.IConnectionMultiplexer přístup k databázi.

Návraty

Odkaz na IDataProtectionBuilder po dokončení této operace.

Platí pro

PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey)

Zdroj:
RedisDataProtectionBuilderExtensions.cs

Nakonfiguruje systém ochrany dat tak, aby uchovával klíče k zadanému klíči v databázi Redis.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToRedis(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, StackExchange::Redis::IConnectionMultiplexer ^ connectionMultiplexer, StackExchange::Redis::RedisKey key);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToRedis (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, StackExchange.Redis.IConnectionMultiplexer connectionMultiplexer, StackExchange.Redis.RedisKey key);
static member PersistKeysToRedis : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * StackExchange.Redis.IConnectionMultiplexer * StackExchange.Redis.RedisKey -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToRedis (builder As IDataProtectionBuilder, connectionMultiplexer As IConnectionMultiplexer, key As RedisKey) As IDataProtectionBuilder

Parametry

builder
IDataProtectionBuilder

Instance tvůrce, která se má upravit.

connectionMultiplexer
StackExchange.Redis.IConnectionMultiplexer

Pro StackExchange.Redis.IConnectionMultiplexer přístup k databázi.

key
StackExchange.Redis.RedisKey

Slouží StackExchange.Redis.RedisKey k uložení seznamu klíčů.

Návraty

Odkaz na IDataProtectionBuilder po dokončení této operace.

Platí pro

PersistKeysToRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey)

Zdroj:
RedisDataProtectionBuilderExtensions.cs

Nakonfiguruje systém ochrany dat tak, aby uchovával klíče pro zadaný klíč v databázi Redis.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToRedis(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Func<StackExchange::Redis::IDatabase ^> ^ databaseFactory, StackExchange::Redis::RedisKey key);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToRedis (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Func<StackExchange.Redis.IDatabase> databaseFactory, StackExchange.Redis.RedisKey key);
static member PersistKeysToRedis : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Func<StackExchange.Redis.IDatabase> * StackExchange.Redis.RedisKey -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToRedis (builder As IDataProtectionBuilder, databaseFactory As Func(Of IDatabase), key As RedisKey) As IDataProtectionBuilder

Parametry

builder
IDataProtectionBuilder

Instance tvůrce, která se má upravit.

databaseFactory
Func<StackExchange.Redis.IDatabase>

Delegát použitý k vytváření StackExchange.Redis.IDatabase instancí.

key
StackExchange.Redis.RedisKey

Slouží StackExchange.Redis.RedisKey k uložení seznamu klíčů.

Návraty

Odkaz na IDataProtectionBuilder po dokončení této operace.

Platí pro