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

            await _storage.Update(profile);
        }
예제 #2
0
        private async Task <Profile> UpdatedInApi(Profile profile)
        {
            if (profile == null)
            {
                return(null);
            }

            try
            {
                await _apiProfiles.Update(profile);

                _cancellationToken.ThrowIfCancellationRequested();
            }
            catch (ProfileException ex)
            {
                await HandleException(ex, profile);

                return(profile);
            }

            return(profile);
        }
예제 #3
0
 public Task UpdateProfile(Profile profile)
 {
     AddCountryCode(profile);
     return(_profiles.Update(profile));
 }
예제 #4
0
        public async Task Update(Profile profile)
        {
            await _profiles.Update(profile);

            Sync();
        }