Beispiel #1
0
        public Task <BaseObject> SetAuthenticationPhoneNumberAsync(SetAuthenticationPhoneNumber function)
        {
            _loggingOut       = false;
            _continueOnLogOut = function;
            _continueResult   = new TaskCompletionSource <BaseObject>();

            ProtoService.Send(new LogOut());

            return(_continueResult.Task);
        }
Beispiel #2
0
        private async void ContinueOnLogOut()
        {
            var function = _continueOnLogOut;

            if (function == null)
            {
                return;
            }

            var source = _continueResult;

            if (source == null)
            {
                return;
            }

            _continueOnLogOut = null;

            var response = await ProtoService.SendAsync(function);

            source.SetResult(response);
        }