C# Class ResumableUpload.MfResumableFileUploadController

Mostra file Open project: MediaFire/mediafire-csharp-open-sdk Class Usage Examples

Public Methods

Method Description
CalculateFileHash ( ) : void
MfResumableFileUploadController ( IMediaFireAgent agent, long fileLength, Stream fileStream, string fileName ) : System
Upload ( ResumableUploadDetails resumableUpload ) : System.Threading.Tasks.Task

Private Methods

Method Description
GetBlockHash ( byte bytes, int length ) : string
GetHashDigest ( Sha256Digest hash ) : string
UploadUnit ( int unit, ResumableUploadDetails resumableUpload ) : Task

Method Details

CalculateFileHash() public method

public CalculateFileHash ( ) : void
return void

MfResumableFileUploadController() public method

public MfResumableFileUploadController ( IMediaFireAgent agent, long fileLength, Stream fileStream, string fileName ) : System
agent IMediaFireAgent
fileLength long
fileStream Stream
fileName string
return System

Upload() public method

public Upload ( ResumableUploadDetails resumableUpload ) : System.Threading.Tasks.Task
resumableUpload MediaFireSDK.Model.Responses.ResumableUploadDetails
return System.Threading.Tasks.Task