protected override async Task OnSuccessExecuted()
        {
            OperationResult ValidPassword = await _verifyPassword.Convert(Password.Password);

            if (ValidPassword.WasSuccessful == false)
            {
                if (ValidPassword.HadErrors)
                {
                    OnCancelled();
                    return;
                }

                InvalidPasswordEntered?.Invoke(this, EventArgs.Empty);
                return;
            }

            OnSuccessful(new GenericEventArgs <OperationResult>(ValidPassword));
            Dispose();
            return;
        }
示例#2
0
 public void OnInvalidJoinPassword()
 {
     InvalidPasswordEntered?.Invoke(this, EventArgs.Empty);
 }