Skip to content

Commit 0c6721f

Browse files
Lanning, MarkLanning, Mark
authored andcommitted
updated the service registration to be unique for AddCacheXXXXXXStore
1 parent dd3bf3d commit 0c6721f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cache/src/ThingsLibrary.Cache.Cosmos/ServiceExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace ThingsLibrary.Cache.Cosmost
1818
{
1919
public static partial class ServicesExtensions
2020
{
21-
public static IServiceCollection AddCacheStore(this IServiceCollection services, CosmosClient comosClient, ItemDto configOptions)
21+
public static IServiceCollection AddCacheCosmosStore(this IServiceCollection services, CosmosClient comosClient, ItemDto configOptions)
2222
{
2323
services.AddCosmosCache((CosmosCacheOptions cacheOptions) =>
2424
{
@@ -36,7 +36,7 @@ public static IServiceCollection AddCacheStore(this IServiceCollection services,
3636
return services;
3737
}
3838

39-
public static IServiceCollection AddCacheStore(this IServiceCollection services, IConfiguration configuration, ItemDto configOptions)
39+
public static IServiceCollection AddCacheCosmosStore(this IServiceCollection services, IConfiguration configuration, ItemDto configOptions)
4040
{
4141
services.AddCosmosCache((CosmosCacheOptions cacheOptions) =>
4242
{

Cache/src/ThingsLibrary.Cache.Memory/ServiceExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace ThingsLibrary.Cache.Memory
1313
{
1414
public static partial class ServicesExtensions
1515
{
16-
public static IServiceCollection AddCacheStore(this IServiceCollection services, JsonSerializerOptions jsonSerializerOptions)
16+
public static IServiceCollection AddCacheMemoryStore(this IServiceCollection services, JsonSerializerOptions jsonSerializerOptions)
1717
{
1818
services.AddDistributedMemoryCache();
1919

0 commit comments

Comments
 (0)