Skip to content

Version Service

The Version Service is a service used to fetch the latest VersionData from the Data Service which is used to check the build version of the app on the CheckVersionLoadPhase Load Phase.

Checking the version

CheckVersionLoadPhase dispatches a VersionMismatchAction if the build version is different from the VersionService latest version. Subscribing to this action would give you the ability to deal with the version mismatch.

public class VersionMismatchAction : IAction
{
    public Version LatestVersion { get; set; }
    public virtual Type[] TypesToDispatchAs => new[] {typeof(VersionMismatchAction)};

    public virtual void ResetAction()
    {
        LatestVersion = null;
    }
}