Click or drag to resize

IServerNotificationsUpdateAsync Method

IT Hit User File System
Updates a file or folder on this virtual drive. This method automatically hydrates and dehydrates files.

Namespace:  ITHit.FileSystem
Assembly:  ITHit.FileSystem (in ITHit.FileSystem.dll) Version: 8.0.26019.0-Beta+92e3f56e17dbfd6ebbef85925c0684282db3d967
Syntax
Task<OperationResult> UpdateAsync(
	IFileSystemItemMetadata itemInfo,
	bool autoHydration = true
)

Parameters

itemInfo
Type: ITHit.FileSystemIFileSystemItemMetadata
New file or folder info.
autoHydration (Optional)
Type: SystemBoolean
Automatically hydrates and dehydrates file.

Return Value

Type: TaskOperationResult
Operation result, indicating if the operation was successfull and how many items was affected.
Remarks

Call this method from your remote storage monitor when a file or folder is updated in the remote storage.

This method failes if the file or folder in user file system is modified (not in-sync with the remote storage).

Because of the on-demand loading, the item may not exist in the user file system. In this case the item will not be updated and this method returns false.

See Also