Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Ftp.CalculateLocalChecksumAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9147)

CalculateLocalChecksumAsync(FtpChecksumType, String, Object)

Begins asynchronous CalculateLocalChecksum operation. Calculates the checksum for the specified local file. This method will be deprecated. Please use GetChecksum(String, ChecksumAlgorithm) method instead.

Declaration
public static Task<string> CalculateLocalChecksumAsync(FtpChecksumType type, string localPath, object state = null)
Parameters
Type Name Description
FtpChecksumType type

Desired checksum type.

String localPath

Path of the local file.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<String>

Checksum of the specified local file.

CalculateLocalChecksumAsync(FtpChecksumType, String, Int32, Int64, Object)

Begins asynchronous CalculateLocalChecksum operation. Calculates the checksum for the specified local file. This method will be deprecated. Please use GetChecksum(String, ChecksumAlgorithm) method instead.

Declaration
public static Task<string> CalculateLocalChecksumAsync(FtpChecksumType type, string localPath, int localOffset, long length, object state = null)
Parameters
Type Name Description
FtpChecksumType type

Desired checksum type.

String localPath

Path of the local file.

Int32 localOffset

The offset in the local file where reading will start.

Int64 length

The maximum number of bytes to read.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<String>

Checksum of the specified local file.

CalculateLocalChecksumAsync(FtpChecksumType, Stream, Object)

Begins asynchronous CalculateLocalChecksum operation. Calculates the checksum of the data in specified stream. This method will be deprecated. Please use GetChecksum(String, ChecksumAlgorithm) method instead.

Declaration
public static Task<string> CalculateLocalChecksumAsync(FtpChecksumType type, Stream sourceStream, object state = null)
Parameters
Type Name Description
FtpChecksumType type

Desired checksum type.

Stream sourceStream

The source data stream.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<String>

Checksum of the data in the specified stream.

CalculateLocalChecksumAsync(FtpChecksumType, Stream, Int64, Object)

Begins asynchronous CalculateLocalChecksum operation. Calculates the checksum of the data in specified stream. This method will be deprecated. Please use GetChecksum(String, ChecksumAlgorithm) method instead.

Declaration
public static Task<string> CalculateLocalChecksumAsync(FtpChecksumType type, Stream sourceStream, long length, object state = null)
Parameters
Type Name Description
FtpChecksumType type

Desired checksum type.

Stream sourceStream

The source data stream.

Int64 length

The maximum number of bytes to read.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<String>

Checksum of the data in the specified stream.

In This Article
  • CalculateLocalChecksumAsync(FtpChecksumType, String, Object)
  • CalculateLocalChecksumAsync(FtpChecksumType, String, Int32, Int64, Object)
  • CalculateLocalChecksumAsync(FtpChecksumType, Stream, Object)
  • CalculateLocalChecksumAsync(FtpChecksumType, Stream, Int64, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies