StaticFileMiddleware Construtores
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
StaticFileMiddleware(RequestDelegate, IHostingEnvironment, IOptions<StaticFileOptions>, ILoggerFactory) |
Cria uma nova instância do StaticFileMiddleware. |
StaticFileMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<StaticFileOptions>, ILoggerFactory) |
Cria uma nova instância do StaticFileMiddleware. |
StaticFileMiddleware(RequestDelegate, IHostingEnvironment, IOptions<StaticFileOptions>, ILoggerFactory)
- Origem:
- StaticFileMiddleware.cs
- Origem:
- StaticFileMiddleware.cs
Cria uma nova instância do StaticFileMiddleware.
public:
StaticFileMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnv, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::StaticFileOptions ^> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public StaticFileMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnv, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.StaticFileOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IHostingEnvironment * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.StaticFileOptions> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware
Public Sub New (next As RequestDelegate, hostingEnv As IHostingEnvironment, options As IOptions(Of StaticFileOptions), loggerFactory As ILoggerFactory)
Parâmetros
- next
- RequestDelegate
O próximo middleware do pipeline.
- hostingEnv
- IHostingEnvironment
O IHostingEnvironment usado por este middleware.
- options
- IOptions<StaticFileOptions>
As opções de configuração.
- loggerFactory
- ILoggerFactory
Uma ILoggerFactory instância usada para criar agentes.
Aplica-se a
StaticFileMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<StaticFileOptions>, ILoggerFactory)
- Origem:
- StaticFileMiddleware.cs
Cria uma nova instância do StaticFileMiddleware.
public:
StaticFileMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IWebHostEnvironment ^ hostingEnv, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::StaticFileOptions ^> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public StaticFileMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnv, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.StaticFileOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IWebHostEnvironment * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.StaticFileOptions> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware
Public Sub New (next As RequestDelegate, hostingEnv As IWebHostEnvironment, options As IOptions(Of StaticFileOptions), loggerFactory As ILoggerFactory)
Parâmetros
- next
- RequestDelegate
O próximo middleware do pipeline.
- hostingEnv
- IWebHostEnvironment
O IWebHostEnvironment usado por este middleware.
- options
- IOptions<StaticFileOptions>
As opções de configuração.
- loggerFactory
- ILoggerFactory
Uma ILoggerFactory instância usada para criar agentes.