C# Class UploadExamples.Services.CloudFilesUploadService

Upload service that integrates with cloud files api
Inheritance: IUploadService
Exibir arquivo Open project: jasonseney/cloudfiles-encoding-demo

Public Methods

Method Description
CloudFilesUploadService ( string username, string apiKey, string containerName ) : System
DeleteFile ( string filename ) : void

Deletes a file from this container

GetCdnUri ( ) : string

Get the CDN URI for this container

GetFileList ( ) : IEnumerable

Gets a list of the files in this container

GetProgress ( ) : float

Grabs the current progress from cache

Private Methods

Method Description
IUploadService ( string filename ) : void

Cancels a transfer in progress

IUploadService ( string fileName, string path, System stream, string parameters, bool firstChunk, bool lastChunk ) : void

Stores a file passed in through an IO stream.

fileTransferProgress ( int bytesTransferred ) : void

Calculates and stores the progress in this class's cache

Method Details

CloudFilesUploadService() public method

public CloudFilesUploadService ( string username, string apiKey, string containerName ) : System
username string
apiKey string
containerName string
return System

DeleteFile() public method

Deletes a file from this container
public DeleteFile ( string filename ) : void
filename string Name of the file to delete
return void

GetCdnUri() public method

Get the CDN URI for this container
public GetCdnUri ( ) : string
return string

GetFileList() public method

Gets a list of the files in this container
public GetFileList ( ) : IEnumerable
return IEnumerable

GetProgress() public method

Grabs the current progress from cache
public GetProgress ( ) : float
return float