Skip to content

Commit ce06f87

Browse files
Lanning, MarkLanning, Mark
authored andcommitted
change to standarized connection_string_variable for cache cosmos
1 parent 0c6721f commit ce06f87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static IServiceCollection AddCacheCosmosStore(this IServiceCollection ser
4040
{
4141
services.AddCosmosCache((CosmosCacheOptions cacheOptions) =>
4242
{
43-
var connectionStringVariable = configOptions["connection_variable"] ?? throw new ArgumentException("'connection_variable' missing from cache options");
43+
var connectionStringVariable = configOptions["connection_string_variable"] ?? throw new ArgumentException("'connection_string_variable' missing from cache options");
4444

4545
cacheOptions.ClientBuilder = new CosmosClientBuilder(configuration.TryGetConnectionString(connectionStringVariable));
4646
cacheOptions.DatabaseName = configOptions["database_name"] ?? throw new ArgumentException("'database_name' missing from cache options.");

0 commit comments

Comments
 (0)