Skip to content

Commit b979c21

Browse files
committed
naming to client factory
1 parent 3f1bf24 commit b979c21

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/providers/WorkflowCore.Providers.Azure/Services/CosmosDbProvisioner.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ namespace WorkflowCore.Providers.Azure.Services
99
public class CosmosDbProvisioner : ICosmosDbProvisioner
1010
{
1111

12-
private ICosmosClientFactory _client;
12+
private ICosmosClientFactory _clientFactory;
1313

14-
public CosmosDbProvisioner(ICosmosClientFactory client, ILoggerFactory loggerFactory)
14+
public CosmosDbProvisioner(ICosmosClientFactory clientFactory, ILoggerFactory loggerFactory)
1515
{
16-
_client = client;
16+
_clientFactory = clientFactory;
1717
}
1818

1919
public async Task Provision(string dbId)
2020
{
21-
var dbResp = await _client.GetCosmosClient().CreateDatabaseIfNotExistsAsync(dbId);
21+
var dbResp = await _clientFactory.GetCosmosClient().CreateDatabaseIfNotExistsAsync(dbId);
2222
var wfIndexPolicy = new IndexingPolicy();
2323
wfIndexPolicy.IncludedPaths.Add(new IncludedPath { Path = @"/*" });
2424
wfIndexPolicy.ExcludedPaths.Add(new ExcludedPath { Path = @"/ExecutionPointers/?" });
@@ -32,6 +32,5 @@ public async Task Provision(string dbId)
3232
dbResp.Database.CreateContainerIfNotExistsAsync(new ContainerProperties(CosmosDbPersistenceProvider.SubscriptionContainerName, @"/id"))
3333
);
3434
}
35-
3635
}
3736
}

0 commit comments

Comments
 (0)