Class FileVersionManager
public class FileVersionManager
- Inheritance
-
FileVersionManager
Properties
Instance
public static FileVersionManager Instance { get; }
Property Value
PeekAsyncRequestsLeft
Returns the amount of items scheduled left to process
public long PeekAsyncRequestsLeft { get; }
Property Value
Remarks
It may already be out of date as soon as it returns. Do not rely on this to check for completion, use the callbacks instead.
Methods
ComputeFileHash(UFile)
public ObjectId ComputeFileHash(UFile path)
Parameters
path
UFile
Returns
ComputeFileHashAsync(UFile, Action<UFile, ObjectId>, CancellationToken?)
public void ComputeFileHashAsync(UFile path, Action<UFile, ObjectId> fileHashCallback = null, CancellationToken? cancellationToken = null)
Parameters
path
UFilefileHashCallback
Action<UFile, ObjectId>cancellationToken
CancellationToken?
ComputeFileHashAsync(IEnumerable<UFile>, Action<UFile, ObjectId>, CancellationToken?)
public void ComputeFileHashAsync(IEnumerable<UFile> paths, Action<UFile, ObjectId> fileHashCallback = null, CancellationToken? cancellationToken = null)
Parameters
paths
IEnumerable<UFile>fileHashCallback
Action<UFile, ObjectId>cancellationToken
CancellationToken?
Shutdown()
public static void Shutdown()