C# 클래스 UploadExamples.Services.CloudFilesUploadService

Upload service that integrates with cloud files api
상속: IUploadService
파일 보기 프로젝트 열기: jasonseney/cloudfiles-encoding-demo

공개 메소드들

메소드 설명
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