Partilhar via


CorsMiddleware Construtores

Definição

Sobrecargas

CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy)
Obsoleto.

Cria a instância de um novo CorsMiddleware.

CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider)
Obsoleto.

Cria a instância de um novo CorsMiddleware.

CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory)

Cria a instância de um novo CorsMiddleware.

CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy, ILoggerFactory)

Cria a instância de um novo CorsMiddleware.

CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory)

Cria a instância de um novo CorsMiddleware.

CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, String)
Obsoleto.

Cria a instância de um novo CorsMiddleware.

CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory, String)

Cria a instância de um novo CorsMiddleware.

CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory, String)

Cria a instância de um novo CorsMiddleware.

CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy)

Origem:
CorsMiddleware.cs
Origem:
CorsMiddleware.cs

Cuidado

This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory

Cria a instância de um novo CorsMiddleware.

public:
 CorsMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Cors::Infrastructure::ICorsService ^ corsService, Microsoft::AspNetCore::Cors::Infrastructure::CorsPolicy ^ policy);
public CorsMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy);
[System.Obsolete("This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory")]
public CorsMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy);
new Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Cors.Infrastructure.ICorsService * Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy -> Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware
[<System.Obsolete("This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory")>]
new Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Cors.Infrastructure.ICorsService * Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy -> Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware
Public Sub New (next As RequestDelegate, corsService As ICorsService, policy As CorsPolicy)

Parâmetros

next
RequestDelegate

O próximo middleware do pipeline.

corsService
ICorsService

Uma instância de ICorsService.

policy
CorsPolicy

Uma instância do CorsPolicy que pode ser aplicada.

Atributos

Aplica-se a

CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider)

Origem:
CorsMiddleware.cs
Origem:
CorsMiddleware.cs

Cuidado

This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory

Cria a instância de um novo CorsMiddleware.

public:
 CorsMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Cors::Infrastructure::ICorsService ^ corsService, Microsoft::AspNetCore::Cors::Infrastructure::ICorsPolicyProvider ^ policyProvider);
public CorsMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider policyProvider);
[System.Obsolete("This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory")]
public CorsMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider policyProvider);
new Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Cors.Infrastructure.ICorsService * Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider -> Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware
[<System.Obsolete("This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory")>]
new Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Cors.Infrastructure.ICorsService * Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider -> Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware
Public Sub New (next As RequestDelegate, corsService As ICorsService, policyProvider As ICorsPolicyProvider)

Parâmetros

next
RequestDelegate

O próximo middleware do pipeline.

corsService
ICorsService

Uma instância de ICorsService.

policyProvider
ICorsPolicyProvider

Um provedor de política que pode obter um CorsPolicy.

Atributos

Aplica-se a

CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory)

Origem:
CorsMiddleware.cs

Cria a instância de um novo CorsMiddleware.

public:
 CorsMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Cors::Infrastructure::ICorsService ^ corsService, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public CorsMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Cors.Infrastructure.ICorsService * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware
Public Sub New (next As RequestDelegate, corsService As ICorsService, loggerFactory As ILoggerFactory)

Parâmetros

next
RequestDelegate

O próximo middleware do pipeline.

corsService
ICorsService

Uma instância de ICorsService.

loggerFactory
ILoggerFactory

Uma instância de ILoggerFactory.

Aplica-se a

CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy, ILoggerFactory)

Origem:
CorsMiddleware.cs
Origem:
CorsMiddleware.cs

Cria a instância de um novo CorsMiddleware.

public:
 CorsMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Cors::Infrastructure::ICorsService ^ corsService, Microsoft::AspNetCore::Cors::Infrastructure::CorsPolicy ^ policy, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public CorsMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Cors.Infrastructure.ICorsService * Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware
Public Sub New (next As RequestDelegate, corsService As ICorsService, policy As CorsPolicy, loggerFactory As ILoggerFactory)

Parâmetros

next
RequestDelegate

O próximo middleware do pipeline.

corsService
ICorsService

Uma instância de ICorsService.

policy
CorsPolicy

Uma instância do CorsPolicy que pode ser aplicada.

loggerFactory
ILoggerFactory

Uma instância de ILoggerFactory.

Aplica-se a

CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory)

Origem:
CorsMiddleware.cs

Cria a instância de um novo CorsMiddleware.

public:
 CorsMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Cors::Infrastructure::ICorsService ^ corsService, Microsoft::AspNetCore::Cors::Infrastructure::ICorsPolicyProvider ^ policyProvider, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public CorsMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider policyProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Cors.Infrastructure.ICorsService * Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware
Public Sub New (next As RequestDelegate, corsService As ICorsService, policyProvider As ICorsPolicyProvider, loggerFactory As ILoggerFactory)

Parâmetros

next
RequestDelegate

O próximo middleware do pipeline.

corsService
ICorsService

Uma instância de ICorsService.

policyProvider
ICorsPolicyProvider

Um provedor de política que pode obter um CorsPolicy.

loggerFactory
ILoggerFactory

Uma instância de ILoggerFactory.

Aplica-se a

CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, String)

Origem:
CorsMiddleware.cs
Origem:
CorsMiddleware.cs

Cuidado

This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory

Cria a instância de um novo CorsMiddleware.

public:
 CorsMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Cors::Infrastructure::ICorsService ^ corsService, Microsoft::AspNetCore::Cors::Infrastructure::ICorsPolicyProvider ^ policyProvider, System::String ^ policyName);
public CorsMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider policyProvider, string policyName);
[System.Obsolete("This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory")]
public CorsMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider policyProvider, string policyName);
new Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Cors.Infrastructure.ICorsService * Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider * string -> Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware
[<System.Obsolete("This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory")>]
new Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Cors.Infrastructure.ICorsService * Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider * string -> Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware
Public Sub New (next As RequestDelegate, corsService As ICorsService, policyProvider As ICorsPolicyProvider, policyName As String)

Parâmetros

next
RequestDelegate

O próximo middleware do pipeline.

corsService
ICorsService

Uma instância de ICorsService.

policyProvider
ICorsPolicyProvider

Um provedor de política que pode obter um CorsPolicy.

policyName
String

Um nome opcional da política a ser buscada.

Atributos

Aplica-se a

CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory, String)

Origem:
CorsMiddleware.cs

Cria a instância de um novo CorsMiddleware.

public:
 CorsMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Cors::Infrastructure::ICorsService ^ corsService, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, System::String ^ policyName);
public CorsMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, string policyName);
public CorsMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, string? policyName);
new Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Cors.Infrastructure.ICorsService * Microsoft.Extensions.Logging.ILoggerFactory * string -> Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware
Public Sub New (next As RequestDelegate, corsService As ICorsService, loggerFactory As ILoggerFactory, policyName As String)

Parâmetros

next
RequestDelegate

O próximo middleware do pipeline.

corsService
ICorsService

Uma instância de ICorsService.

loggerFactory
ILoggerFactory

Uma instância de ILoggerFactory.

policyName
String

Um nome opcional da política a ser buscada.

Aplica-se a

CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory, String)

Origem:
CorsMiddleware.cs

Cria a instância de um novo CorsMiddleware.

public:
 CorsMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Cors::Infrastructure::ICorsService ^ corsService, Microsoft::AspNetCore::Cors::Infrastructure::ICorsPolicyProvider ^ policyProvider, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, System::String ^ policyName);
public CorsMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider policyProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, string policyName);
new Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Cors.Infrastructure.ICorsService * Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider * Microsoft.Extensions.Logging.ILoggerFactory * string -> Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware
Public Sub New (next As RequestDelegate, corsService As ICorsService, policyProvider As ICorsPolicyProvider, loggerFactory As ILoggerFactory, policyName As String)

Parâmetros

next
RequestDelegate

O próximo middleware do pipeline.

corsService
ICorsService

Uma instância de ICorsService.

policyProvider
ICorsPolicyProvider

Um provedor de política que pode obter um CorsPolicy.

loggerFactory
ILoggerFactory

Uma instância de ILoggerFactory.

policyName
String

Um nome opcional da política a ser buscada.

Aplica-se a