Class FileSystemService
- Namespace
- Datamine.MineTrustConnector.Service.Extensibility
- Assembly
- Datamine.MineTrustConnector.Service.Extensibility.dll
Service responsible for performing local file operations during normal service execution.
public class FileSystemService
- Inheritance
-
FileSystemService
- Inherited Members
Methods
ComputeFileHash(string, CancellationToken)
Performs the hash computation of the specified file.
protected virtual Task<string> ComputeFileHash(string filePath, CancellationToken cancel)
Parameters
filePath
string-
The file path.
cancel
CancellationToken-
The cancellation token.
Returns
ExpireFileHash(string)
Instructs this instance to clear all internal hash records for the specified file.
public void ExpireFileHash(string filePath)
Parameters
filePath
string-
The file path.
GetFileHash(string, bool, CancellationToken)
Gets the file hash of the specified local file. Hash should be calculated as an MD5 signature in accordance with C:\Repos\MineTrust\Source\Modules\MineTrust\Server\Module\ServerUtilities.cs
public Task<string> GetFileHash(string filePath, bool noCache = false, CancellationToken cancel = default)
Parameters
filePath
string-
The file path.
noCache
bool-
if set to
true
[no cache]. cancel
CancellationToken-
The cancellation token.