Interface IEventUpgrader<TFrom, TTo>
Defines a component that can upgrade events from one version to another.
public interface IEventUpgrader<in TFrom, out TTo> where TFrom : IDomainEvent where TTo : IDomainEvent
Type Parameters
TFromThe source event type.
TToThe target event type.
- Extension Methods
Methods
Upgrade(TFrom)
Upgrades an event from one version to another.
TTo Upgrade(TFrom fromEvent)
Parameters
fromEventTFromThe event to upgrade.
Returns
- TTo
The upgraded event.