Table of Contents

Interface IMessageUpgradeStrategy

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

Defines the contract for upgrading messages from one version to another.

public interface IMessageUpgradeStrategy
Extension Methods

Methods

CanUpgrade(Type, string)

Checks if the given version of the message type is upgradeable.

bool CanUpgrade(Type messageType, string version)

Parameters

messageType Type
version string

Returns

bool

Upgrade(string, Type, string, string)

Upgrades the given payload (in string form) to the current version of the message type.

object Upgrade(string payload, Type messageType, string fromVersion, string toVersion)

Parameters

payload string
messageType Type
fromVersion string
toVersion string

Returns

object