예제 #1
0
        public async Task ChangePassword()
        {
            var changePasswordParameters = await _accountDialogDisplayActions.ShowChangePasswordDialog();

            if (!changePasswordParameters.HasValue)
            {
                return;
            }

            var changePasswordOperation = _networkOperationFactory.CreateSafeBlockingOperation(
                async() => await _accountActions.ChangePassword(changePasswordParameters.Value),
                SetInitialStateAndShowError,
                SetInitialStateAndShowError);

            if (!await changePasswordOperation.Invoke())
            {
                return;
            }

            var result = changePasswordOperation.Result;

            _accountDialogDisplayActions.ShowCreateAccountServerError(result);
        }