Condividi tramite


StaticFileMiddleware Costruttori

Definizione

Overload

StaticFileMiddleware(RequestDelegate, IHostingEnvironment, IOptions<StaticFileOptions>, ILoggerFactory)

Crea una nuova istanza di StaticFileMiddleware.

StaticFileMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<StaticFileOptions>, ILoggerFactory)

Crea una nuova istanza di StaticFileMiddleware.

StaticFileMiddleware(RequestDelegate, IHostingEnvironment, IOptions<StaticFileOptions>, ILoggerFactory)

Origine:
StaticFileMiddleware.cs
Origine:
StaticFileMiddleware.cs

Crea una nuova istanza di 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)

Parametri

next
RequestDelegate

Middleware successivo nella pipeline.

hostingEnv
IHostingEnvironment

Oggetto IHostingEnvironment utilizzato da questo middleware.

options
IOptions<StaticFileOptions>

Opzioni di configurazione.

loggerFactory
ILoggerFactory

ILoggerFactory Istanza usata per creare loggers.

Si applica a

StaticFileMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<StaticFileOptions>, ILoggerFactory)

Origine:
StaticFileMiddleware.cs

Crea una nuova istanza di 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)

Parametri

next
RequestDelegate

Middleware successivo nella pipeline.

hostingEnv
IWebHostEnvironment

Oggetto IWebHostEnvironment utilizzato da questo middleware.

options
IOptions<StaticFileOptions>

Opzioni di configurazione.

loggerFactory
ILoggerFactory

ILoggerFactory Istanza usata per creare loggers.

Si applica a