コード例 #1
0
        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);
 }