RedisDataProtectionBuilderExtensions.PersistKeysToRedis 方法

定义

重载

PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer)

配置数据保护系统以将密钥保存到 Redis 数据库中的默认密钥 (“DataProtection-Keys”)

PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey)

配置数据保护系统以将密钥保存到 Redis 数据库中的指定密钥

PersistKeysToRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey)

配置数据保护系统以将密钥保存到 Redis 数据库中的指定密钥

PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer)

配置数据保护系统以将密钥保存到 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)

配置数据保护系统以将密钥保存到 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)

配置数据保护系统以将密钥保存到 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 的引用。

适用于