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

Enables serving static JavaScript files compiled via Babel. Wraps around StaticFileMiddleware.
Показать файл Открыть проект

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

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