共用方式為


RedisDataProtectionBuilderExtensions.PersistKeysToRedis 方法

定義

多載

PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer)

設定資料保護系統,將金鑰保存在 Redis 資料庫中的預設金鑰 ('DataProtection-Keys')

PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey)

設定資料保護系統,將金鑰保存到 Redis 資料庫中指定的金鑰

PersistKeysToRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey)

設定資料保護系統,將金鑰保存到 Redis 資料庫中的指定金鑰

PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer)

來源:
RedisDataProtectionBuilderExtensions.cs

設定資料保護系統,將金鑰保存在 Redis 資料庫中的預設金鑰 ('DataProtection-Keys')

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

參數

builder
IDataProtectionBuilder

要修改的產生器實例。

connectionMultiplexer
StackExchange.Redis.IConnectionMultiplexer

資料庫 StackExchange.Redis.IConnectionMultiplexer 存取的 。

傳回

完成此作業之後的 IDataProtectionBuilder 參考。

適用於

PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey)

來源:
RedisDataProtectionBuilderExtensions.cs

設定資料保護系統,將金鑰保存到 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

參數

builder
IDataProtectionBuilder

要修改的產生器實例。

connectionMultiplexer
StackExchange.Redis.IConnectionMultiplexer

資料庫 StackExchange.Redis.IConnectionMultiplexer 存取的 。

key
StackExchange.Redis.RedisKey

StackExchange.Redis.RedisKey用來儲存金鑰清單的 。

傳回

完成此作業之後的 IDataProtectionBuilder 參考。

適用於

PersistKeysToRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey)

來源:
RedisDataProtectionBuilderExtensions.cs

設定資料保護系統,將金鑰保存到 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

參數

builder
IDataProtectionBuilder

要修改的產生器實例。

databaseFactory
Func<StackExchange.Redis.IDatabase>

用來建立 StackExchange.Redis.IDatabase 實例的委派。

key
StackExchange.Redis.RedisKey

StackExchange.Redis.RedisKey用來儲存金鑰清單的 。

傳回

完成此作業之後的 IDataProtectionBuilder 參考。

適用於