Class FileTransferValidator
A file transfer validator, for both upload and download scenarios.
Inheritance
System.Object
FileTransferValidator
Implements
Namespace: DNVGL.One.Compute.StorageLibrary.Azure.FileTransfer
Assembly: DNVGL.One.Compute.StorageLibrary.Azure.dll
Syntax
public class FileTransferValidator : object, IFileTransferValidator
Methods
View SourceIsValidDownload(String, CloudBlockBlob)
Determines whether the specified downloaded local file is validated successfully against the source BLOB.
Declaration
public bool IsValidDownload(string destPath, CloudBlockBlob sourceBlob)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | destPath | The local file destination path. |
| CloudBlockBlob | sourceBlob | The source cloud BLOB. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
IsValidUpload(CloudBlockBlob, String)
Determines whether the specified uploaded destination BLOB is validated successfully against the local file.
Declaration
public bool IsValidUpload(CloudBlockBlob destBlob, string sourcePath)
Parameters
| Type | Name | Description |
|---|---|---|
| CloudBlockBlob | destBlob | The destination cloud BLOB. |
| System.String | sourcePath | The local file source path. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|