Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 558b887

Browse files
committed
Fix metodo statico
1 parent ce7bfe6 commit 558b887

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/NET6CustomLibrary/Extensions/DependencyInjection.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,9 @@ public static IServiceCollection AddRedisCacheService(this IServiceCollection se
348348
options.InstanceName = configuration.GetSection("Redis").GetValue<string>("InstanceName");
349349
});
350350

351-
services.
352-
Configure<RedisOptions>(configuration.GetSection("Redis"));
351+
services.AddTransient<ICacheService, CacheService>();
352+
353+
services.Configure<RedisOptions>(configuration.GetSection("Redis"));
353354

354355
return services;
355356
}

0 commit comments

Comments
 (0)