C# Class React.AspNet.BabelFileSystem

File system that serves transformed JavaScript files.
Inheritance: Microsoft.Owin.FileSystems.IFileSystem
Afficher le fichier Open project: reactjs/React.NET

Méthodes publiques

Méthode Description
BabelFileSystem ( IBabel transformer, Microsoft.Owin.FileSystems.IFileSystem fileSystem, IEnumerable extensions ) : System

Creates a new instance of the BabelFileSystem.

BabelFileSystem ( IBabel transformer, string root, IEnumerable extensions ) : System

Creates a new instance of the BabelFileSystem.

GetDirectoryContents ( string subpath ) : IDirectoryContents

Enumerate a directory at the given path, if any

GetFileInfo ( string subpath ) : IFileInfo

Locate a file at the given path.

TryGetDirectoryContents ( string subpath, IEnumerable &contents ) : bool

Enumerate a directory at the given path, if any

TryGetFileInfo ( string subpath, IFileInfo &fileInfo ) : bool

Locate a JavaScript file at the given path.

Watch ( string filter ) : IChangeToken

Creates a T:Microsoft.Framework.Primitives.IChangeToken for the specified filter.

Method Details

BabelFileSystem() public méthode

Creates a new instance of the BabelFileSystem.
public BabelFileSystem ( IBabel transformer, Microsoft.Owin.FileSystems.IFileSystem fileSystem, IEnumerable extensions ) : System
transformer IBabel Babel transformer used to compile files
fileSystem Microsoft.Owin.FileSystems.IFileSystem File system used to look up files
extensions IEnumerable Extensions of files that will be treated as JavaScript files
Résultat System

BabelFileSystem() public méthode

Creates a new instance of the BabelFileSystem.
public BabelFileSystem ( IBabel transformer, string root, IEnumerable extensions ) : System
transformer IBabel Babel transformer used to compile files
root string The root directory
extensions IEnumerable Extensions of files that will be treated as JavaScript files
Résultat System

GetDirectoryContents() public méthode

Enumerate a directory at the given path, if any
public GetDirectoryContents ( string subpath ) : IDirectoryContents
subpath string The path that identifies the directory
Résultat IDirectoryContents

GetFileInfo() public méthode

Locate a file at the given path.
public GetFileInfo ( string subpath ) : IFileInfo
subpath string The path that identifies the file
Résultat IFileInfo

TryGetDirectoryContents() public méthode

Enumerate a directory at the given path, if any
public TryGetDirectoryContents ( string subpath, IEnumerable &contents ) : bool
subpath string The path that identifies the directory
contents IEnumerable The contents if any
Résultat bool

TryGetFileInfo() public méthode

Locate a JavaScript file at the given path.
public TryGetFileInfo ( string subpath, IFileInfo &fileInfo ) : bool
subpath string The path that identifies the file
fileInfo IFileInfo The discovered file if any
Résultat bool

Watch() public méthode

Creates a T:Microsoft.Framework.Primitives.IChangeToken for the specified filter.
public Watch ( string filter ) : IChangeToken
filter string /// Filter string used to determine what files or folders to monitor. /// Example: **/*.cs, *.*, subFolder/**/*.cshtml.
Résultat IChangeToken