Click or drag to resize

IServerNotifications Interface

IT Hit User File System
Creates, updates, moves and deletes placeholder files and folders based on the info from the remote storage.

Namespace:  ITHit.FileSystem
Assembly:  ITHit.FileSystem (in ITHit.FileSystem.dll) Version: 8.4.27341.0
Syntax
public interface IServerNotifications

The IServerNotifications type exposes the following members.

Methods
  NameDescription
Public methodCreateAsync
Creates new file and folder placeholders in the user file system in this folder.
Public methodDeleteAsync
Deletes a file or folder from the user file system.
Public methodMoveToAsync(String)
Moves the file or folder placeholder in the user file system. This method succeeds only if source is loaded in to user file system and target parent folder exists and is not offline.
Public methodMoveToAsync(String, IFileSystemItemMetadata)
Moves the file or folder placeholder in the user file system. Automatically creates the target or deletes source depending on items existance.
Public methodMoveToAsync(Byte, String, IFileSystemItemMetadata)
Moves the file or folder placeholder in the user file system by remote storage item ID. Automatically creates the target or deletes source depending on items existance.
Public methodUpdateAsync
Updates a file or folder on this virtual drive. This method automatically hydrates and dehydrates files.
Top
Remarks

Call methods of this interface when the client receives messages from the remote storage (for example via we sockets) about changes in the remote storage, such as files and folders creation, update, deletion, move/rename, etc.

The operations may fail because of various reasons. For example because the item may not be loaded in user file system (because of the on-demand population) or the item may be blocked by the application or by the concurrent thread. In this case the each method of this interface returns the reason in the OperationResult object.

See Also