Skip to content

Commit

Permalink
Fix namespace typo and format inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
urumo committed Nov 16, 2024
1 parent 8a8d4f2 commit 428ea9b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Argon.Api/Features/Orleanse/RedisExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace Argon.Api.Extensions;

using Argon.Api.Features.Orleanse.Storages;
using Features.OrleansStorageProviders;
using Features.Orleanse.Storages;
using Microsoft.Extensions.Options;
using Orleans.Configuration;
using Orleans.Runtime.Hosting;
Expand All @@ -11,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 428ea9b

Please sign in to comment.