SyncResult
Result of a full bidirectional sync operation.
public sealed record SyncResult : IEquatable<SyncResult>
Example
// After a full sync operation
var syncResult = new SyncResult(
Pull: new PullResult(ChangesApplied: 42, FromVersion: 100, ToVersion: 142),
Push: new PushResult(ChangesPushed: 15, FromVersion: 50, ToVersion: 65)
);
Console.WriteLine($"Sync complete: pulled {syncResult.Pull.ChangesApplied}, pushed {syncResult.Push.ChangesPushed}");
Constructors
SyncResult
public SyncResult(PullResult Pull, PushResult Push)
Result of a full bidirectional sync operation.
| Parameter | Type | Description |
|---|---|---|
Pull |
PullResult |
Result of pulling changes from remote. |
Push |
PushResult |
Result of pushing changes to remote. |
Properties
Pull
public PullResult Pull { get; init; }
Result of pulling changes from remote.
Push
public PushResult Push { get; init; }
Result of pushing changes to remote.