public async Task DeactivateAsync(DeactivateArgs args) { await OnDeactivateAsync(args); if (!args.Cancel) { this.IsActive = false; } }
protected virtual async Task OnDeactivateAsync(DeactivateArgs args) { }