Interface IInMemoryEventSourcingBuilder
- Namespace
- Excalibur.EventSourcing.InMemory
- Assembly
- Excalibur.EventSourcing.InMemory.dll
Fluent builder interface for configuring in-memory event sourcing settings.
public interface IInMemoryEventSourcingBuilder
Examples
services.AddExcalibur(x => x.AddEventSourcing(es =>
{
es.UseInMemory(inmemory =>
{
inmemory.StoreName("test-store");
});
}));
Remarks
This builder configures in-memory-specific options such as the store name
used for keyed DI registration.
All methods return this for method chaining.
Methods
StoreName(string)
Sets the keyed service name for the in-memory event store registration.
IInMemoryEventSourcingBuilder StoreName(string storeName)
Parameters
storeNamestringThe store name used as the keyed service key. Must not be null or whitespace.
Returns
- IInMemoryEventSourcingBuilder
The builder for fluent chaining.
Remarks
Default is "inmemory". Use this to differentiate multiple in-memory stores
in the same service collection.
Exceptions
- ArgumentException
Thrown when
storeNameis null or whitespace.