public override Task CheckForExpirationAsync(InstanceContext instanceContext, CheckForExpiration command, CancellationToken cancellationToken) => throw new Exception("Cannot check for expiration against a vacant instance");
public Task CheckForExpirationAsync(CheckForExpiration command, CancellationToken cancellationToken) => _currentState.CheckForExpirationAsync(this, command, cancellationToken);
public override Task CheckForExpirationAsync(InstanceContext instanceContext, CheckForExpiration command, CancellationToken cancellationToken) => instanceContext.Mediator.ExecuteAsync(command, cancellationToken);
public abstract Task CheckForExpirationAsync(InstanceContext instanceContext, CheckForExpiration command, CancellationToken cancellationToken);