StackExchangeRedisDataProtectionBuilderExtensions.PersistKeysToStackExchangeRedis 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
PersistKeysToStackExchangeRedis(IDataProtectionBuilder, IConnectionMultiplexer) |
配置数据保护系统以将密钥保存到 Redis 数据库中的默认密钥 (“DataProtection-Keys”) |
PersistKeysToStackExchangeRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey) |
配置数据保护系统以将密钥保存到 Redis 数据库中的指定密钥 |
PersistKeysToStackExchangeRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey) |
配置数据保护系统以将密钥保存到 Redis 数据库中的指定密钥 |
PersistKeysToStackExchangeRedis(IDataProtectionBuilder, IConnectionMultiplexer)
配置数据保护系统以将密钥保存到 Redis 数据库中的默认密钥 (“DataProtection-Keys”)
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToStackExchangeRedis(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, StackExchange::Redis::IConnectionMultiplexer ^ connectionMultiplexer);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToStackExchangeRedis (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, StackExchange.Redis.IConnectionMultiplexer connectionMultiplexer);
static member PersistKeysToStackExchangeRedis : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * StackExchange.Redis.IConnectionMultiplexer -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToStackExchangeRedis (builder As IDataProtectionBuilder, connectionMultiplexer As IConnectionMultiplexer) As IDataProtectionBuilder
参数
- builder
- IDataProtectionBuilder
要修改的生成器实例。
- connectionMultiplexer
- StackExchange.Redis.IConnectionMultiplexer
StackExchange.Redis.IConnectionMultiplexer用于数据库访问的 。
返回
此操作完成后对 IDataProtectionBuilder 的引用。
适用于
PersistKeysToStackExchangeRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey)
配置数据保护系统以将密钥保存到 Redis 数据库中的指定密钥
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToStackExchangeRedis(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, StackExchange::Redis::IConnectionMultiplexer ^ connectionMultiplexer, StackExchange::Redis::RedisKey key);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToStackExchangeRedis (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, StackExchange.Redis.IConnectionMultiplexer connectionMultiplexer, StackExchange.Redis.RedisKey key);
static member PersistKeysToStackExchangeRedis : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * StackExchange.Redis.IConnectionMultiplexer * StackExchange.Redis.RedisKey -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToStackExchangeRedis (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 的引用。
适用于
PersistKeysToStackExchangeRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey)
配置数据保护系统以将密钥保存到 Redis 数据库中的指定密钥
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToStackExchangeRedis(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Func<StackExchange::Redis::IDatabase ^> ^ databaseFactory, StackExchange::Redis::RedisKey key);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToStackExchangeRedis (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Func<StackExchange.Redis.IDatabase> databaseFactory, StackExchange.Redis.RedisKey key);
static member PersistKeysToStackExchangeRedis : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Func<StackExchange.Redis.IDatabase> * StackExchange.Redis.RedisKey -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToStackExchangeRedis (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 的引用。