Show / Hide Table of Contents

Class FileTransferValidator

A file transfer validator, for both upload and download scenarios.

Inheritance
System.Object
FileTransferValidator
Implements
IFileTransferValidator
Namespace: DNVGL.One.Compute.StorageLibrary.Azure.FileTransfer
Assembly: DNVGL.One.Compute.StorageLibrary.Azure.dll
Syntax
public class FileTransferValidator : object, IFileTransferValidator

Methods

View Source

IsValidDownload(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

true if the specified downloaded local file is validated successfully against the source BLOB; otherwise, false.

View Source

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

true if the specified uploaded destination BLOB is validated successfully against the local file; otherwise, false.

Implements

IFileTransferValidator
  • View Source
In This Article
Back to top Copyright © DNV AS. All rights reserved.