Class EventTypeMigrators
- Namespace
- Cratis.Chronicle.Events.Migrations
- Assembly
- Cratis.Chronicle.dll
Represents an implementation of IEventTypeMigrators.
public class EventTypeMigrators : IEventTypeMigrators
- Inheritance
-
EventTypeMigrators
- Implements
- Inherited Members
Constructors
EventTypeMigrators(IClientArtifactsProvider, IServiceProvider)
Represents an implementation of IEventTypeMigrators.
public EventTypeMigrators(IClientArtifactsProvider clientArtifactsProvider, IServiceProvider serviceProvider)
Parameters
clientArtifactsProviderIClientArtifactsProviderThe IClientArtifactsProvider for discovering migrators.
serviceProviderIServiceProviderThe IServiceProvider for creating instances.
Properties
AllMigrators
Gets all discovered migrator types.
public IEnumerable<Type> AllMigrators { get; }
Property Value
Methods
GetMigratorsFor(Type)
Gets all migrators for a specific event type.
public IEnumerable<IEventTypeMigration> GetMigratorsFor(Type eventType)
Parameters
eventTypeTypeThe event type to get migrators for.
Returns
- IEnumerable<IEventTypeMigration>
Collection of migrators.