Skip to content

Class WolverineNpgsqlExtensions

Namespace: Momentum.ServiceDefaults.Messaging.Wolverine
Assembly: Momentum.ServiceDefaults.dll

csharp
public class WolverineNpgsqlExtensions : IConfigureOptions<WolverineOptions>

Inheritance

objectWolverineNpgsqlExtensions

Implements

IConfigureOptions<WolverineOptions>

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

WolverineNpgsqlExtensions(IConfiguration, IOptions<ServiceBusOptions>)

csharp
public WolverineNpgsqlExtensions(IConfiguration configuration, IOptions<ServiceBusOptions> serviceBusOptions)

Parameters

configuration IConfiguration

serviceBusOptions IOptions<ServiceBusOptions>

Methods

Configure(WolverineOptions)

Configures PostgreSQL for message persistence and transport.

csharp
public void Configure(WolverineOptions options)

Parameters

options WolverineOptions

The Wolverine options to configure.

Remarks

This method:

  • Sets up PostgreSQL for both persistence and transport
  • Creates a schema based on the service name
  • Enables auto-provisioning of database objects
  • Uses "queues" as the transport schema
The persistence schema name is derived from the service name by replacing dots and hyphens with underscores and converting to lowercase.