Compartilhar via


DirectoryBrowserMiddleware Construtores

Definição

Sobrecargas

DirectoryBrowserMiddleware(RequestDelegate, IHostingEnvironment, IOptions<DirectoryBrowserOptions>)

Cria uma nova instância do SendFileMiddleware. Usando Default a instância.

DirectoryBrowserMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<DirectoryBrowserOptions>)

Cria uma nova instância do SendFileMiddleware. Usando Default a instância.

DirectoryBrowserMiddleware(RequestDelegate, IHostingEnvironment, HtmlEncoder, IOptions<DirectoryBrowserOptions>)

Cria uma nova instância do SendFileMiddleware.

DirectoryBrowserMiddleware(RequestDelegate, IWebHostEnvironment, HtmlEncoder, IOptions<DirectoryBrowserOptions>)

Cria uma nova instância do SendFileMiddleware.

DirectoryBrowserMiddleware(RequestDelegate, IHostingEnvironment, IOptions<DirectoryBrowserOptions>)

Origem:
DirectoryBrowserMiddleware.cs
Origem:
DirectoryBrowserMiddleware.cs

Cria uma nova instância do SendFileMiddleware. Usando Default a instância.

public:
 DirectoryBrowserMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnv, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::DirectoryBrowserOptions ^> ^ options);
public DirectoryBrowserMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnv, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DirectoryBrowserOptions> options);
new Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IHostingEnvironment * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DirectoryBrowserOptions> -> Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware
Public Sub New (next As RequestDelegate, hostingEnv As IHostingEnvironment, options As IOptions(Of DirectoryBrowserOptions))

Parâmetros

next
RequestDelegate

O próximo middleware do pipeline.

hostingEnv
IHostingEnvironment

O IHostingEnvironment usado por esse middleware.

options
IOptions<DirectoryBrowserOptions>

A configuração desse middleware.

Aplica-se a

DirectoryBrowserMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<DirectoryBrowserOptions>)

Origem:
DirectoryBrowserMiddleware.cs

Cria uma nova instância do SendFileMiddleware. Usando Default a instância.

public:
 DirectoryBrowserMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IWebHostEnvironment ^ hostingEnv, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::DirectoryBrowserOptions ^> ^ options);
public DirectoryBrowserMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnv, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DirectoryBrowserOptions> options);
new Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IWebHostEnvironment * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DirectoryBrowserOptions> -> Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware
Public Sub New (next As RequestDelegate, hostingEnv As IWebHostEnvironment, options As IOptions(Of DirectoryBrowserOptions))

Parâmetros

next
RequestDelegate

O próximo middleware do pipeline.

hostingEnv
IWebHostEnvironment

O IWebHostEnvironment usado por esse middleware.

options
IOptions<DirectoryBrowserOptions>

A configuração desse middleware.

Aplica-se a

DirectoryBrowserMiddleware(RequestDelegate, IHostingEnvironment, HtmlEncoder, IOptions<DirectoryBrowserOptions>)

Origem:
DirectoryBrowserMiddleware.cs
Origem:
DirectoryBrowserMiddleware.cs

Cria uma nova instância do SendFileMiddleware.

public:
 DirectoryBrowserMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnv, System::Text::Encodings::Web::HtmlEncoder ^ encoder, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::DirectoryBrowserOptions ^> ^ options);
public DirectoryBrowserMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnv, System.Text.Encodings.Web.HtmlEncoder encoder, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DirectoryBrowserOptions> options);
new Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IHostingEnvironment * System.Text.Encodings.Web.HtmlEncoder * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DirectoryBrowserOptions> -> Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware
Public Sub New (next As RequestDelegate, hostingEnv As IHostingEnvironment, encoder As HtmlEncoder, options As IOptions(Of DirectoryBrowserOptions))

Parâmetros

next
RequestDelegate

O próximo middleware do pipeline.

hostingEnv
IHostingEnvironment

O IHostingEnvironment usado por esse middleware.

encoder
HtmlEncoder

O HtmlEncoder usado pelo padrão HtmlDirectoryFormatter.

options
IOptions<DirectoryBrowserOptions>

A configuração desse middleware.

Aplica-se a

DirectoryBrowserMiddleware(RequestDelegate, IWebHostEnvironment, HtmlEncoder, IOptions<DirectoryBrowserOptions>)

Origem:
DirectoryBrowserMiddleware.cs

Cria uma nova instância do SendFileMiddleware.

public:
 DirectoryBrowserMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IWebHostEnvironment ^ hostingEnv, System::Text::Encodings::Web::HtmlEncoder ^ encoder, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::DirectoryBrowserOptions ^> ^ options);
public DirectoryBrowserMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnv, System.Text.Encodings.Web.HtmlEncoder encoder, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DirectoryBrowserOptions> options);
new Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IWebHostEnvironment * System.Text.Encodings.Web.HtmlEncoder * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DirectoryBrowserOptions> -> Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware
Public Sub New (next As RequestDelegate, hostingEnv As IWebHostEnvironment, encoder As HtmlEncoder, options As IOptions(Of DirectoryBrowserOptions))

Parâmetros

next
RequestDelegate

O próximo middleware do pipeline.

hostingEnv
IWebHostEnvironment

O IWebHostEnvironment usado por esse middleware.

encoder
HtmlEncoder

O HtmlEncoder usado pelo padrão HtmlDirectoryFormatter.

options
IOptions<DirectoryBrowserOptions>

A configuração desse middleware.

Aplica-se a