C# 클래스 React.AspNet.BabelFileSystem

File system that serves transformed JavaScript files.
상속: Microsoft.Owin.FileSystems.IFileSystem
파일 보기 프로젝트 열기: reactjs/React.NET

공개 메소드들

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