StaticFileMiddleware Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
StaticFileMiddleware(RequestDelegate, IHostingEnvironment, IOptions<StaticFileOptions>, ILoggerFactory) |
Creates a new instance of the StaticFileMiddleware. |
StaticFileMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<StaticFileOptions>, ILoggerFactory) |
Creates a new instance of the StaticFileMiddleware. |
StaticFileMiddleware(RequestDelegate, IHostingEnvironment, IOptions<StaticFileOptions>, ILoggerFactory)
- Source:
- StaticFileMiddleware.cs
- Source:
- StaticFileMiddleware.cs
Creates a new instance of the 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)
Parameters
- next
- RequestDelegate
The next middleware in the pipeline.
- hostingEnv
- IHostingEnvironment
The IHostingEnvironment used by this middleware.
- options
- IOptions<StaticFileOptions>
The configuration options.
- loggerFactory
- ILoggerFactory
An ILoggerFactory instance used to create loggers.
Applies to
StaticFileMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<StaticFileOptions>, ILoggerFactory)
- Source:
- StaticFileMiddleware.cs
Creates a new instance of the 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)
Parameters
- next
- RequestDelegate
The next middleware in the pipeline.
- hostingEnv
- IWebHostEnvironment
The IWebHostEnvironment used by this middleware.
- options
- IOptions<StaticFileOptions>
The configuration options.
- loggerFactory
- ILoggerFactory
An ILoggerFactory instance used to create loggers.