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

            await _storage.Delete(profile);
        }
Example #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;
                }
            }
        }
Example #3
0
 public Task RemoveProfile(Profile profile)
 {
     return(_profiles.Delete(profile));
 }
Example #4
0
        public async Task Delete(Profile profile)
        {
            await _profiles.Delete(profile);

            Sync();
        }