Table of Contents

Class EventSourcingBuilderOracleExtensions

Namespace
Excalibur.EventSourcing.Oracle
Assembly
Excalibur.EventSourcing.Oracle.dll

Extension methods for configuring Oracle event sourcing on IEventSourcingBuilder.

public static class EventSourcingBuilderOracleExtensions
Inheritance
EventSourcingBuilderOracleExtensions
Inherited Members

Methods

UseOracle(IEventSourcingBuilder, Action<OracleEventStoreOptions>, Action<OracleSnapshotStoreOptions>?)

Configures the event sourcing builder to use Oracle for the event store and snapshot store, bringing Oracle to parity with the other providers' es => es.UseX(...) composition shape.

public static IEventSourcingBuilder UseOracle(this IEventSourcingBuilder builder, Action<OracleEventStoreOptions> configureEventStore, Action<OracleSnapshotStoreOptions>? configureSnapshotStore = null)

Parameters

builder IEventSourcingBuilder

The event sourcing builder.

configureEventStore Action<OracleEventStoreOptions>

Configuration action for the Oracle event store options.

configureSnapshotStore Action<OracleSnapshotStoreOptions>

Optional configuration action for the Oracle snapshot store options. When omitted, the snapshot store is registered using the event store's connection string and the default snapshot schema/table, so a single ConnectionString is sufficient for the common case.

Returns

IEventSourcingBuilder

The builder for fluent chaining.

Examples

services.AddExcalibur(x => x.AddEventSourcing(es =>
{
    es.UseOracle(o =>
    {
        o.ConnectionString = configuration.GetConnectionString("EventStore")!;
        o.Schema = "EXCALIBUR";
    })
    .AddRepository<OrderAggregate, Guid>();
}));

Exceptions

ArgumentNullException

Thrown when builder or configureEventStore is null.