public async Task Delete(Profile profile)
        {
            if (profile == null)
            {
                return;
            }

            await _storage.Delete(profile);
        }
Пример #2
0
        private async Task DeleteInApi(Profile profile)
        {
            if (profile == null)
            {
                return;
            }

            try
            {
                await _apiProfiles.Delete(profile);

                _cancellationToken.ThrowIfCancellationRequested();
            }
            catch (ProfileException ex)
            {
                _logger.Error(ex.CombinedMessage());

                if (ex.Error != ProfileError.NotFound)
                {
                    _failed      = true;
                    ErrorMessage = ex.Message;
                }
            }
        }
Пример #3
0
 public Task RemoveProfile(Profile profile)
 {
     return(_profiles.Delete(profile));
 }
Пример #4
0
        public async Task Delete(Profile profile)
        {
            await _profiles.Delete(profile);

            Sync();
        }