C# Class UploadExamples.Services.CloudFilesUploadService

Upload service that integrates with cloud files api
Inheritance: IUploadService
Afficher le fichier Open project: jasonseney/cloudfiles-encoding-demo

Méthodes publiques

Méthode 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

Méthode 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 méthode

public CloudFilesUploadService ( string username, string apiKey, string containerName ) : System
username string
apiKey string
containerName string
Résultat System

DeleteFile() public méthode

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

GetCdnUri() public méthode

Get the CDN URI for this container
public GetCdnUri ( ) : string
Résultat string

GetFileList() public méthode

Gets a list of the files in this container
public GetFileList ( ) : IEnumerable
Résultat IEnumerable

GetProgress() public méthode

Grabs the current progress from cache
public GetProgress ( ) : float
Résultat float