Skip to content

Commit 795cd0f

Browse files
committed
fix(Api): Renamed the WorkflowDatabaseInitializer to DatabaseProvisioner
Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
1 parent 5f0fcb6 commit 795cd0f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/api/Synapse.Api.Application/Services/DatabaseProvisioner .cs renamed to src/api/Synapse.Api.Application/Services/DatabaseProvisioner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace Synapse.Api.Application.Services;
3333
/// <param name="yamlSerializer">The service used to serialize/deserialize data to/from YAML</param>
3434
/// <param name="workflowDefinitionReader">The service used to read <see cref="WorkflowDefinition"/>s</param>
3535
/// <param name="options">The service used to access the current <see cref="ApiServerOptions"/></param>
36-
public class WorkflowDatabaseInitializer(IServiceProvider serviceProvider, ILogger<WorkflowDatabaseInitializer> logger, IJsonSerializer jsonSerializer, IYamlSerializer yamlSerializer, IWorkflowDefinitionReader workflowDefinitionReader, IOptions<ApiServerOptions> options)
36+
public class DatabaseProvisioner(IServiceProvider serviceProvider, ILogger<DatabaseProvisioner> logger, IJsonSerializer jsonSerializer, IYamlSerializer yamlSerializer, IWorkflowDefinitionReader workflowDefinitionReader, IOptions<ApiServerOptions> options)
3737
: IHostedService
3838
{
3939

src/api/Synapse.Api.Server/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
builder.Services.AddSynapse(builder.Configuration);
2626
builder.Services.AddSynapseApi();
2727
builder.Services.AddSynapseHttpApi(authority);
28-
builder.Services.AddHostedService<WorkflowDatabaseInitializer>();
28+
builder.Services.AddHostedService<DatabaseProvisioner>();
2929

3030
var authentication = builder.Services.AddAuthentication(FallbackPolicySchemeDefaults.AuthenticationScheme);
3131
authentication.AddScheme<StaticBearerAuthenticationOptions, StaticBearerAuthenticationHandler>(StaticBearerDefaults.AuthenticationScheme, options =>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy