Table of Contents

Class PostgreSqlServiceCollectionExtensions

Namespace
FlowOrchestrator.PostgreSQL
Assembly
FlowOrchestrator.PostgreSQL.dll

DI registration helpers for the PostgreSQL FlowOrchestrator storage backend.

public static class PostgreSqlServiceCollectionExtensions
Inheritance
PostgreSqlServiceCollectionExtensions
Inherited Members

Methods

AddFlowOrchestratorPostgreSql(IServiceCollection, string)

Registers PostgreSQL implementations directly on IServiceCollection, for use outside the AddFlowOrchestrator builder pattern.

public static IServiceCollection AddFlowOrchestratorPostgreSql(this IServiceCollection services, string connectionString)

Parameters

services IServiceCollection

The service collection to register into.

connectionString string

Npgsql connection string.

Returns

IServiceCollection

AddPostgreSqlWebhookHardening(FlowOrchestratorBuilder, string)

Registers the PostgreSQL-backed webhook hardening stores (IWebhookReplayStore, IWebhookRejectionStore), replacing the in-memory defaults wired by AddFlowDashboard.

public static FlowOrchestratorBuilder AddPostgreSqlWebhookHardening(this FlowOrchestratorBuilder builder, string connectionString)

Parameters

builder FlowOrchestratorBuilder

The FlowOrchestrator builder.

connectionString string

Npgsql connection string.

Returns

FlowOrchestratorBuilder

UsePostgreSql(FlowOrchestratorBuilder, string)

Registers PostgreSQL implementations of all storage interfaces and the auto-migration hosted service. Call inside AddFlowOrchestrator(options => options.UsePostgreSql(connectionString)).

public static FlowOrchestratorBuilder UsePostgreSql(this FlowOrchestratorBuilder builder, string connectionString)

Parameters

builder FlowOrchestratorBuilder

The FlowOrchestrator builder to register into.

connectionString string

Npgsql connection string. Must point to an accessible PostgreSQL database.

Returns

FlowOrchestratorBuilder