Skip to content

Commit 688863f

Browse files
committed
docs(DataProtection): update databaseFactory parameter documentation to clarify usage with IServiceProvider
1 parent 29326f3 commit 688863f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DataProtection/StackExchangeRedis/src/RedisDataProtectionBuilderExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static IDataProtectionBuilder PersistKeysToStackExchangeRedis(this IDataP
6161
/// Configures the data protection system to persist keys to the default key ('DataProtection-Keys') in Redis database
6262
/// </summary>
6363
/// <param name="builder">The builder instance to modify.</param>
64-
/// <param name="databaseFactory">The <see cref="IConnectionMultiplexer"/> for database access.</param>
64+
/// <param name="databaseFactory">A factory function that uses <see cref="IServiceProvider"/> to create an <see cref="IDatabase"/> instance.</param>
6565
/// <returns>A reference to the <see cref="IDataProtectionBuilder" /> after this operation has completed.</returns>
6666
public static IDataProtectionBuilder PersistKeysToStackExchangeRedis(this IDataProtectionBuilder builder, Func<IServiceProvider, IDatabase> databaseFactory)
6767
{
@@ -72,7 +72,7 @@ public static IDataProtectionBuilder PersistKeysToStackExchangeRedis(this IDataP
7272
/// Configures the data protection system to persist keys to the specified key in Redis database
7373
/// </summary>
7474
/// <param name="builder">The builder instance to modify.</param>
75-
/// <param name="databaseFactory">The <see cref="IConnectionMultiplexer"/> for database access.</param>
75+
/// <param name="databaseFactory">A factory function that uses <see cref="IServiceProvider"/> to create an <see cref="IDatabase"/> instance.</param>
7676
/// <param name="key">The <see cref="RedisKey"/> used to store key list.</param>
7777
/// <returns>A reference to the <see cref="IDataProtectionBuilder" /> after this operation has completed.</returns>
7878
public static IDataProtectionBuilder PersistKeysToStackExchangeRedis(this IDataProtectionBuilder builder, Func<IServiceProvider, IDatabase> databaseFactory, RedisKey key)

0 commit comments

Comments
 (0)