Table of Contents

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

clientArtifactsProvider IClientArtifactsProvider

The IClientArtifactsProvider for discovering migrators.

serviceProvider IServiceProvider

The IServiceProvider for creating instances.

Properties

AllMigrators

Gets all discovered migrator types.

public IEnumerable<Type> AllMigrators { get; }

Property Value

IEnumerable<Type>

Methods

GetMigratorsFor(Type)

Gets all migrators for a specific event type.

public IEnumerable<IEventTypeMigration> GetMigratorsFor(Type eventType)

Parameters

eventType Type

The event type to get migrators for.

Returns

IEnumerable<IEventTypeMigration>

Collection of migrators.