ILockLockAsync Method |
Namespace: ITHit.FileSystem
Task LockAsync( LockMode lockMode, IOperationContext operationContext, CancellationToken cancellationToken )
This method implementation must lock the item in the remote storage and save the received lock-token on the client. You will supply the lock-token as part of your next server update request in WriteAsync(IFileMetadata, Stream, IOperationContext, IInSyncResultContext, CancellationToken) and WriteAsync(IFolderMetadata, IOperationContext, IInSyncResultContext, CancellationToken).
You must also save the lock mode to be returned from GetLockModeAsync(IOperationContext, CancellationToken) method when requested by the Engine.