Ftp.GetRemoteChecksumAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9083)
GetRemoteChecksumAsync(FtpChecksumType, String, Object)
Begins asynchronous GetRemoteChecksum operation. Returns the checksum of the specified file on the server. This method will be deprecated. Please use GetChecksum(String, ChecksumAlgorithm) instead.
Declaration
public Task<string> GetRemoteChecksumAsync(FtpChecksumType type, string remotePath, object state = null)
Parameters
Type | Name | Description |
---|---|---|
FtpChecksumType | type | Desired checksum type (server must support it). |
String | remotePath | Path of the remote file. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<String> | Checksum of the specified remote file. |
Remarks
To calculate checksums of local files, use one of CalculateLocalChecksum(FtpChecksumType, String) methods.
GetRemoteChecksumAsync(FtpChecksumType, String, Int32, Int64, Object)
Begins asynchronous GetRemoteChecksum operation. Returns the checksum of the specified file on the server. This method will be deprecated. Please use GetChecksum(String, ChecksumAlgorithm, Int64, Int64) instead.
Declaration
public Task<string> GetRemoteChecksumAsync(FtpChecksumType type, string remotePath, int offset, long count, object state = null)
Parameters
Type | Name | Description |
---|---|---|
FtpChecksumType | type | Desired checksum type (server must support it - see GetSupportedChecksumTypes() for details). |
String | remotePath | Path of the remote file. |
Int32 | offset | The offset in remote file where reading will start. |
Int64 | count | 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 remote file. |
Remarks
Please note that not all FTP server that support checksums will necessarily support this variant as well.
To calculate checksums of local files, use one of CalculateLocalChecksum(FtpChecksumType, String, Int32, Int64) methods.