C# Class Drey.Server.Services.FilesytemFileService

Inheritance: IFileService
显示文件 Open project: dealproc/Drey

Public Methods

Method Description
DeleteAsync ( string filename ) : Task

Deletes a file from the storage medium.

DownloadBlobAsync ( string filename ) : Task

Downloads the file from the storage medium.

EnumerateFilesAsync ( ) : Task>

Enumerates the files on the storage medium.

FilesytemFileService ( string baseFolder ) : System.Collections.Generic
StoreAsync ( string fileName, System stream ) : Task

Stores the provided string with the provided filename.

Method Details

DeleteAsync() public method

Deletes a file from the storage medium.
public DeleteAsync ( string filename ) : Task
filename string The filename.
return Task

DownloadBlobAsync() public method

Downloads the file from the storage medium.
public DownloadBlobAsync ( string filename ) : Task
filename string The uri to access the file.
return Task

EnumerateFilesAsync() public method

Enumerates the files on the storage medium.
public EnumerateFilesAsync ( ) : Task>
return Task>

FilesytemFileService() public method

public FilesytemFileService ( string baseFolder ) : System.Collections.Generic
baseFolder string
return System.Collections.Generic

StoreAsync() public method

Stores the provided string with the provided filename.
public StoreAsync ( string fileName, System stream ) : Task
fileName string Name of the file.
stream System The stream.
return Task