Class FileVersionManager
public class FileVersionManager
- Inheritance
-
objectFileVersionManager
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
pathUFile
Returns
ComputeFileHashAsync(UFile, Action<UFile, ObjectId>?, CancellationToken?)
public void ComputeFileHashAsync(UFile path, Action<UFile, ObjectId>? fileHashCallback = null, CancellationToken? cancellationToken = null)
Parameters
pathUFilefileHashCallbackAction<UFile, ObjectId>cancellationTokenCancellationToken?
ComputeFileHashAsync(IEnumerable<UFile>, Action<UFile, ObjectId>?, CancellationToken?)
public void ComputeFileHashAsync(IEnumerable<UFile> paths, Action<UFile, ObjectId>? fileHashCallback = null, CancellationToken? cancellationToken = null)
Parameters
pathsIEnumerable<UFile>fileHashCallbackAction<UFile, ObjectId>cancellationTokenCancellationToken?
Shutdown()
public static void Shutdown()