Click or drag to resize

HydrationSyncProcessAsync Method

IT Hit User File System
Processes items that were pinned and unpinned in the user file system, synching files content from the remote storage to the user file system.

Namespace:  ITHit.FileSystem.Windows
Assembly:  ITHit.FileSystem.Windows (in ITHit.FileSystem.Windows.dll) Version: 8.3.27213.0
Syntax
public Task ProcessAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests.

Return Value

Type: Task
A task object that can be awaited.
Remarks

By default this method is called automatically by the SyncService. It is also called by the StartAsync(Boolean, CancellationToken) if true is passed as a parameter (default).

Calling this method will trigger pinned files synchronization. The Engine will call methods of the ReadAsync(Stream, Int64, Int64, IFileMetadata, ITransferDataOperationContext, ITransferDataResultContext, CancellationToken) for each pinned file.

  • To process all changes that were performed when the Engine was not running.
  • After the connection to the server is restored.
  • After succesefull authentication.
  • To find and process all items that failed to sync for any reason.

See Also