C# Класс UploadExamples.Services.CloudFilesUploadService

Upload service that integrates with cloud files api
Наследование: IUploadService
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

CloudFilesUploadService() публичный Метод

public CloudFilesUploadService ( string username, string apiKey, string containerName ) : System
username string
apiKey string
containerName string
Результат System

DeleteFile() публичный Метод

Deletes a file from this container
public DeleteFile ( string filename ) : void
filename string Name of the file to delete
Результат void

GetCdnUri() публичный Метод

Get the CDN URI for this container
public GetCdnUri ( ) : string
Результат string

GetFileList() публичный Метод

Gets a list of the files in this container
public GetFileList ( ) : IEnumerable
Результат IEnumerable

GetProgress() публичный Метод

Grabs the current progress from cache
public GetProgress ( ) : float
Результат float