protected async override void OnExecute(object parameter) { if (parameter is ILockableDescriptor descriptor) { await LockableDescriptorUtility.LockAsync(this.authenticator, descriptor); } }
public async Task LockAsync() { await LockableDescriptorUtility.LockAsync(this.authentication, this); }