Table of Contents

Class AzureBlobColdEventStoreExtensions

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

Extension methods for registering the Azure Blob cold event store.

public static class AzureBlobColdEventStoreExtensions
Inheritance
AzureBlobColdEventStoreExtensions
Inherited Members

Methods

UseAzureBlobColdEventStore(IEventSourcingBuilder, Action<IEventSourcingAzureBlobBuilder>)

Registers the Azure Blob Storage cold event store provider using a fluent builder.

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

Parameters

builder IEventSourcingBuilder

The event sourcing builder.

configure Action<IEventSourcingAzureBlobBuilder>

Configuration action for the Azure Blob builder.

Returns

IEventSourcingBuilder

The builder for fluent chaining.

Examples

services.AddExcalibur(x => x.AddEventSourcing(es =>
{
    es.UseTieredStorage(policy => policy.MaxAge = TimeSpan.FromDays(90));
    es.UseAzureBlobColdEventStore(blob =>
    {
        blob.ConnectionString("UseDevelopmentStorage=true")
            .ContainerName("cold-events");
    });
}));