Skip to content

Commit

Permalink
Refactor AddRedisStorage method signature formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
urumo committed Nov 16, 2024
2 parents 428ea9b + 7e95a44 commit b1357e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Argon.Api/Features/Orleanse/RedisExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ public static class RedisExtensions
{
public static ISiloBuilder AddRedisStorage(this ISiloBuilder builder, string providerName, Action<RedisGrainStorageOptions> options) =>
builder.ConfigureServices(services => services.AddRedisStorage(providerName, options));

public static ISiloBuilder AddRedisStorage(this ISiloBuilder builder, string providerName, int indexDb) =>
builder.ConfigureServices(services => services.AddRedisStorage(providerName, options => options.DatabaseName = indexDb));

public static IServiceCollection AddRedisStorage(this IServiceCollection services, string providerName, Action<RedisGrainStorageOptions> options)
public static IServiceCollection AddRedisStorage(this IServiceCollection services, string providerName,
Action<RedisGrainStorageOptions> options)
{
services.AddOptions<RedisGrainStorageOptions>(providerName).Configure(options);
services.ConfigureNamedOptionForLogging<RedisGrainStorageOptions>(providerName);
Expand Down

0 comments on commit b1357e0

Please sign in to comment.