Table of Contents

Interface IEventUpgrader<TFrom, TTo>

Namespace
Excalibur.Dispatch
Assembly
Excalibur.Dispatch.Abstractions.dll

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

TFrom

The source event type.

TTo

The target event type.

Extension Methods

Methods

Upgrade(TFrom)

Upgrades an event from one version to another.

TTo Upgrade(TFrom fromEvent)

Parameters

fromEvent TFrom

The event to upgrade.

Returns

TTo

The upgraded event.