Interface IMessageUpgradeStrategy
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
Returns
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)