Table of Contents

Class EventSourcingBuilderDynamoDbExtensions

Namespace
Microsoft.Extensions.DependencyInjection
Assembly
Excalibur.EventSourcing.DynamoDb.dll

Extension methods for configuring DynamoDB event sourcing on IEventSourcingBuilder.

public static class EventSourcingBuilderDynamoDbExtensions
Inheritance
EventSourcingBuilderDynamoDbExtensions
Inherited Members

Methods

UseDynamoDb(IEventSourcingBuilder, Action<IDynamoDBEventSourcingBuilder>)

Configures the event sourcing builder to use AWS DynamoDB for event storage.

[UnconditionalSuppressMessage("AOT", "IL2026:RequiresUnreferencedCode", Justification = "Options validation/binding uses reflection by design.")]
[UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "Configuration binding uses reflection by design.")]
public static IEventSourcingBuilder UseDynamoDb(this IEventSourcingBuilder builder, Action<IDynamoDBEventSourcingBuilder> configure)

Parameters

builder IEventSourcingBuilder

The event sourcing builder.

configure Action<IDynamoDBEventSourcingBuilder>

Configuration action for the DynamoDB event sourcing builder.

Returns

IEventSourcingBuilder

The builder for fluent chaining.

Examples

services.AddExcalibur(x => x.AddEventSourcing(es =>
{
    es.UseDynamoDb(dynamo =>
    {
        dynamo.ServiceUrl("http://localhost:8000")
              .TableName("events");
    })
    .AddRepository<OrderAggregate, Guid>();
}));

Exceptions

ArgumentNullException

Thrown when builder or configure is null.