File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/providers/WorkflowCore.Providers.Azure/Services Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments