DefaultFilesMiddleware 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
DefaultFilesMiddleware(RequestDelegate, IHostingEnvironment, IOptions<DefaultFilesOptions>) |
Creates a new instance of the DefaultFilesMiddleware. |
DefaultFilesMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<DefaultFilesOptions>) |
Creates a new instance of the DefaultFilesMiddleware. |
DefaultFilesMiddleware(RequestDelegate, IHostingEnvironment, IOptions<DefaultFilesOptions>)
- Source:
- DefaultFilesMiddleware.cs
- Source:
- DefaultFilesMiddleware.cs
Creates a new instance of the DefaultFilesMiddleware.
public:
DefaultFilesMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnv, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::DefaultFilesOptions ^> ^ options);
public DefaultFilesMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnv, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DefaultFilesOptions> options);
new Microsoft.AspNetCore.StaticFiles.DefaultFilesMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IHostingEnvironment * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DefaultFilesOptions> -> Microsoft.AspNetCore.StaticFiles.DefaultFilesMiddleware
Public Sub New (next As RequestDelegate, hostingEnv As IHostingEnvironment, options As IOptions(Of DefaultFilesOptions))
Parameters
- next
- RequestDelegate
The next middleware in the pipeline.
- hostingEnv
- IHostingEnvironment
The IHostingEnvironment used by this middleware.
- options
- IOptions<DefaultFilesOptions>
The configuration options for this middleware.
Applies to
DefaultFilesMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<DefaultFilesOptions>)
- Source:
- DefaultFilesMiddleware.cs
Creates a new instance of the DefaultFilesMiddleware.
public:
DefaultFilesMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IWebHostEnvironment ^ hostingEnv, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::DefaultFilesOptions ^> ^ options);
public DefaultFilesMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnv, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DefaultFilesOptions> options);
new Microsoft.AspNetCore.StaticFiles.DefaultFilesMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IWebHostEnvironment * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DefaultFilesOptions> -> Microsoft.AspNetCore.StaticFiles.DefaultFilesMiddleware
Public Sub New (next As RequestDelegate, hostingEnv As IWebHostEnvironment, options As IOptions(Of DefaultFilesOptions))
Parameters
- next
- RequestDelegate
The next middleware in the pipeline.
- hostingEnv
- IWebHostEnvironment
The IWebHostEnvironment used by this middleware.
- options
- IOptions<DefaultFilesOptions>
The configuration options for this middleware.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for