C# Класс React.AspNet.BabelFileSystem

File system that serves transformed JavaScript files.
Наследование: Microsoft.Owin.FileSystems.IFileSystem
Показать файл Открыть проект

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

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

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

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

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
Результат System

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

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
Результат System

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

Enumerate a directory at the given path, if any
public GetDirectoryContents ( string subpath ) : IDirectoryContents
subpath string The path that identifies the directory
Результат IDirectoryContents

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

Locate a file at the given path.
public GetFileInfo ( string subpath ) : IFileInfo
subpath string The path that identifies the file
Результат IFileInfo

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

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
Результат bool

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

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
Результат bool

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

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.
Результат IChangeToken