Class MigrationGenerationsMustShareEventTypeId

Namespace
Cratis.Chronicle.Events.Migrations
Assembly
Cratis.Chronicle.dll

The exception that is thrown when the two generations referenced by an EventTypeMigration<TUpgrade, TPrevious> resolve to different event type ids.

public class MigrationGenerationsMustShareEventTypeId : Exception, ISerializable
Inheritance
MigrationGenerationsMustShareEventTypeId
Implements
Inherited Members
Extension Methods

Constructors

MigrationGenerationsMustShareEventTypeId(Type, Type, EventTypeId, EventTypeId)

The exception that is thrown when the two generations referenced by an EventTypeMigration<TUpgrade, TPrevious> resolve to different event type ids.

public MigrationGenerationsMustShareEventTypeId(Type previousType, Type upgradeType, EventTypeId previousId, EventTypeId upgradeId)

Parameters

previousType Type

The previous (older generation) CLR type.

upgradeType Type

The upgrade (newer generation) CLR type.

previousId EventTypeId

The event type id the previous type resolved to.

upgradeId EventTypeId

The event type id the upgrade type resolved to.