Skip to content

Class EventSourcingServiceCollectionExtensions

Namespace: Cephalon.EventSourcing.Hosting
Assembly: Cephalon.EventSourcing.dll

Registers the runtime-neutral event-sourcing services used by Cephalon hosts.

public static class EventSourcingServiceCollectionExtensions

objectEventSourcingServiceCollectionExtensions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

AddCephalonEventSourcing(IServiceCollection, Action<EventSourcingOptions>?)

Section titled “ AddCephalonEventSourcing(IServiceCollection, Action<EventSourcingOptions>?)”

Adds the Cephalon event-sourcing baseline services to the service collection.

public static IServiceCollection AddCephalonEventSourcing(this IServiceCollection services, Action<EventSourcingOptions>? configure = null)

services IServiceCollection

The service collection to extend.

configure Action<EventSourcingOptions>?

An optional callback that configures the host-owned event-sourcing options.

IServiceCollection

The same service collection for fluent registration.