C# Class TerrificNet.ViewEngine.IO.EmbeddedResourceFileSystem

Inheritance: IFileSystem
Exibir arquivo Open project: namics/TerrificNet Class Usage Examples

Public Methods

Method Description
CreateDirectory ( PathInfo directory ) : void
DirectoryExists ( PathInfo directory ) : bool
DirectoryGetFiles ( PathInfo directory, string fileExtension ) : IEnumerable
EmbeddedResourceFileSystem ( Assembly assembly ) : System
FileExists ( PathInfo filePath ) : bool
GetFileInfo ( PathInfo filePath ) : IFileInfo
OpenRead ( PathInfo filePath ) : Stream
OpenReadOrCreate ( PathInfo filePath ) : Stream
OpenWrite ( PathInfo filePath ) : Stream
RemoveFile ( PathInfo filePath ) : void
SubscribeAsync ( string pattern, Action handler ) : Task
SubscribeDirectoryGetFilesAsync ( PathInfo prefix, string extension, Action handler ) : Task

Method Details

CreateDirectory() public method

public CreateDirectory ( PathInfo directory ) : void
directory PathInfo
return void

DirectoryExists() public method

public DirectoryExists ( PathInfo directory ) : bool
directory PathInfo
return bool

DirectoryGetFiles() public method

public DirectoryGetFiles ( PathInfo directory, string fileExtension ) : IEnumerable
directory PathInfo
fileExtension string
return IEnumerable

EmbeddedResourceFileSystem() public method

public EmbeddedResourceFileSystem ( Assembly assembly ) : System
assembly System.Reflection.Assembly
return System

FileExists() public method

public FileExists ( PathInfo filePath ) : bool
filePath PathInfo
return bool

GetFileInfo() public method

public GetFileInfo ( PathInfo filePath ) : IFileInfo
filePath PathInfo
return IFileInfo

OpenRead() public method

public OpenRead ( PathInfo filePath ) : Stream
filePath PathInfo
return Stream

OpenReadOrCreate() public method

public OpenReadOrCreate ( PathInfo filePath ) : Stream
filePath PathInfo
return Stream

OpenWrite() public method

public OpenWrite ( PathInfo filePath ) : Stream
filePath PathInfo
return Stream

RemoveFile() public method

public RemoveFile ( PathInfo filePath ) : void
filePath PathInfo
return void

SubscribeAsync() public method

public SubscribeAsync ( string pattern, Action handler ) : Task
pattern string
handler Action
return Task

SubscribeDirectoryGetFilesAsync() public method

public SubscribeDirectoryGetFilesAsync ( PathInfo prefix, string extension, Action handler ) : Task
prefix PathInfo
extension string
handler Action
return Task