After a recent change, the contact synchronization service sometimes returns a summary that does not match the items actually processed. You need to review the PR and find two independent reasons for the behavior diverging from the requirements.
SyncAsync method accepts a set of external contact identifiers and a CancellationToken.Synced and Skipped must reflect the actual processing of this call.ContactSyncService.var service = new ContactSyncService();
var first = await service.SyncAsync(new[] { " A-10 ", "A-10", "B-20", " ", "B-20" }, CancellationToken.None);
var second = await service.SyncAsync(new[] { "A-10", "C-30" }, CancellationToken.None);
Skipped..NET 8.0C# 12Task-based async without external servicesSystem.* libraryContactSyncService instance can be used for several sequential SyncAsync callsUse line comments to explain the problem, its impact, the fix and how to test it.