示例#1
0
        private async Task FinishSyncUpdated(Profile profile)
        {
            if (profile == null)
            {
                return;
            }

            using (var cached = await _cachedProfiles.LockedProfileData())
            {
                var p = profile
                        .WithStatus(ProfileStatus.Synced)
                        .WithSyncStatus(ProfileSyncStatus.Succeeded);

                cached.External.AddOrReplace(p);
                cached.Sync.Remove(profile);
            }
        }