C# 클래스 React.AspNet.BabelFileMiddleware

Enables serving static JavaScript files compiled via Babel. Wraps around StaticFileMiddleware.
파일 보기 프로젝트 열기: reactjs/React.NET

공개 메소드들

메소드 설명
BabelFileMiddleware ( RequestDelegate next, BabelFileOptions options, IHostingEnvironment hostingEnv, ILoggerFactory loggerFactory ) : System

Creates a new instance of the BabelFileMiddleware.

Invoke ( HttpContext context ) : System.Threading.Tasks.Task

Processes a request to determine if it matches a known JavaScript file, and if so, transforms it via Babel and serves it

비공개 메소드들

메소드 설명
CreateFileMiddleware ( IBabel babel ) : StaticFileMiddleware

Creates the internal StaticFileMiddleware used to serve files.

메소드 상세

BabelFileMiddleware() 공개 메소드

Creates a new instance of the BabelFileMiddleware.
public BabelFileMiddleware ( RequestDelegate next, BabelFileOptions options, IHostingEnvironment hostingEnv, ILoggerFactory loggerFactory ) : System
next RequestDelegate The next middleware in the pipeline.
options BabelFileOptions The configuration options.
hostingEnv IHostingEnvironment The hosting environment.
loggerFactory ILoggerFactory An instance used to create loggers.
리턴 System

Invoke() 공개 메소드

Processes a request to determine if it matches a known JavaScript file, and if so, transforms it via Babel and serves it
public Invoke ( HttpContext context ) : System.Threading.Tasks.Task
context HttpContext ASP.NET HTTP context
리턴 System.Threading.Tasks.Task