Click or drag to resize

ISynchronizationCollectionGetChangesAsync Method

IT Hit User File System
Provides the engine with changes received from server since last sync token.

Namespace:  ITHit.FileSystem.Synchronization
Assembly:  ITHit.FileSystem (in ITHit.FileSystem.dll) Version: 7.1.23701.0
Task<IChanges> GetChangesAsync(
	string syncToken,
	bool deep,
	Nullable<long> limit,
	CancellationToken cancellationToken


Type: SystemString
The synchronization token provided by the server dyring last sychronization event. Null in case of the initial synchronization call.
Type: SystemBoolean
Indicates the "scope" of the synchronization report request, false - immediate children and true - all children at any depth.
Type: SystemNullableInt64
The number of items to return. Null in case of no limit.
Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests.

Return Value

Type: TaskIChanges
A list of changes that correspond to a syncToken. In NewSyncToken property this object must also contain a new new sync-token returned by the server.

In this method you will request all changes from your remote storage passing the provided syncToken. The remote storage must return all changes that happend after the provided syncToken was returned by the remote storage and a new sync-token. You will return all changes and a new sync-token to the Engine. The Engine will process all changes and save a new sync-token.

Any items that failed to process, for example because an item was blocked, will be marked as a conflict.

See Also