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
9
9
public class CosmosDbProvisioner : ICosmosDbProvisioner
10
10
{
11
11
12
- private ICosmosClientFactory _client ;
12
+ private ICosmosClientFactory _clientFactory ;
13
13
14
- public CosmosDbProvisioner ( ICosmosClientFactory client , ILoggerFactory loggerFactory )
14
+ public CosmosDbProvisioner ( ICosmosClientFactory clientFactory , ILoggerFactory loggerFactory )
15
15
{
16
- _client = client ;
16
+ _clientFactory = clientFactory ;
17
17
}
18
18
19
19
public async Task Provision ( string dbId )
20
20
{
21
- var dbResp = await _client . GetCosmosClient ( ) . CreateDatabaseIfNotExistsAsync ( dbId ) ;
21
+ var dbResp = await _clientFactory . GetCosmosClient ( ) . CreateDatabaseIfNotExistsAsync ( dbId ) ;
22
22
var wfIndexPolicy = new IndexingPolicy ( ) ;
23
23
wfIndexPolicy . IncludedPaths . Add ( new IncludedPath { Path = @"/*" } ) ;
24
24
wfIndexPolicy . ExcludedPaths . Add ( new ExcludedPath { Path = @"/ExecutionPointers/?" } ) ;
@@ -32,6 +32,5 @@ public async Task Provision(string dbId)
32
32
dbResp . Database . CreateContainerIfNotExistsAsync ( new ContainerProperties ( CosmosDbPersistenceProvider . SubscriptionContainerName , @"/id" ) )
33
33
) ;
34
34
}
35
-
36
35
}
37
36
}
You can’t perform that action at this time.
0 commit comments