Class EntityFrameworkEventSourcingServiceCollectionExtensions
Namespace: Cephalon.EventSourcing.EntityFramework.Hosting
Assembly: Cephalon.EventSourcing.EntityFramework.dll
Registers the Entity Framework event-store provider used by Cephalon hosts.
public static class EntityFrameworkEventSourcingServiceCollectionExtensionsInheritance
Section titled “Inheritance”object ← EntityFrameworkEventSourcingServiceCollectionExtensions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”AddCephalonEntityFrameworkEventSourcing<TContext>(IServiceCollection)
Section titled “ AddCephalonEntityFrameworkEventSourcing<TContext>(IServiceCollection)”Adds the Entity Framework event-store provider to the service collection.
public static IServiceCollection AddCephalonEntityFrameworkEventSourcing<TContext>(this IServiceCollection services) where TContext : DbContext, IEntityFrameworkEventContextParameters
Section titled “Parameters”services IServiceCollection
The service collection to extend.
Returns
Section titled “Returns”The same service collection for fluent registration.
Type Parameters
Section titled “Type Parameters”TContext
The DbContext type that persists event rows.