Class AwsS3ColdEventStoreExtensions
- Namespace
- Microsoft.Extensions.DependencyInjection
- Assembly
- Excalibur.EventSourcing.AwsS3.dll
Extension methods for registering the AWS S3 cold event store.
public static class AwsS3ColdEventStoreExtensions
- Inheritance
-
AwsS3ColdEventStoreExtensions
- Inherited Members
Methods
UseAwsS3ColdEventStore(IEventSourcingBuilder, Action<IEventSourcingAwsS3Builder>)
Registers the AWS S3 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 UseAwsS3ColdEventStore(this IEventSourcingBuilder builder, Action<IEventSourcingAwsS3Builder> configure)
Parameters
builderIEventSourcingBuilderThe event sourcing builder.
configureAction<IEventSourcingAwsS3Builder>Configuration action for the S3 builder.
Returns
- IEventSourcingBuilder
The builder for fluent chaining.
Examples
services.AddExcalibur(x => x.AddEventSourcing(es =>
{
es.UseTieredStorage(policy => policy.MaxAge = TimeSpan.FromDays(90));
es.UseAwsS3ColdEventStore(s3 =>
{
s3.BucketName("my-cold-events")
.Region("us-east-1");
});
}));