CorsMiddleware Constructores
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy)
- Source:
- CorsMiddleware.cs
- Source:
- CorsMiddleware.cs
Precaución
This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory
Crea una instancia de un nuevo objeto 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
Siguiente middleware de la canalización.
- corsService
- ICorsService
Instancia de ICorsService.
- policy
- CorsPolicy
Instancia de que CorsPolicy se puede aplicar.
- Atributos
Se aplica a
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider)
- Source:
- CorsMiddleware.cs
- Source:
- CorsMiddleware.cs
Precaución
This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory
Crea una instancia de un nuevo objeto 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
Siguiente middleware de la canalización.
- corsService
- ICorsService
Instancia de ICorsService.
- policyProvider
- ICorsPolicyProvider
Proveedor de directivas que puede obtener .CorsPolicy
- Atributos
Se aplica a
CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory)
- Source:
- CorsMiddleware.cs
Crea una instancia de un nuevo objeto 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
Siguiente middleware de la canalización.
- corsService
- ICorsService
Instancia de ICorsService.
- loggerFactory
- ILoggerFactory
Instancia de ILoggerFactory.
Se aplica a
CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy, ILoggerFactory)
- Source:
- CorsMiddleware.cs
- Source:
- CorsMiddleware.cs
Crea una instancia de un nuevo objeto 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
Siguiente middleware de la canalización.
- corsService
- ICorsService
Instancia de ICorsService.
- policy
- CorsPolicy
Instancia de que CorsPolicy se puede aplicar.
- loggerFactory
- ILoggerFactory
Instancia de ILoggerFactory.
Se aplica a
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory)
- Source:
- CorsMiddleware.cs
Crea una instancia de un nuevo objeto 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
Siguiente middleware de la canalización.
- corsService
- ICorsService
Instancia de ICorsService.
- policyProvider
- ICorsPolicyProvider
Proveedor de directivas que puede obtener .CorsPolicy
- loggerFactory
- ILoggerFactory
Instancia de ILoggerFactory.
Se aplica a
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, String)
- Source:
- CorsMiddleware.cs
- Source:
- CorsMiddleware.cs
Precaución
This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory
Crea una instancia de un nuevo objeto 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
Siguiente middleware de la canalización.
- corsService
- ICorsService
Instancia de ICorsService.
- policyProvider
- ICorsPolicyProvider
Proveedor de directivas que puede obtener .CorsPolicy
- policyName
- String
Nombre opcional de la directiva que se va a capturar.
- Atributos
Se aplica a
CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory, String)
- Source:
- CorsMiddleware.cs
Crea una instancia de un nuevo objeto 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
Siguiente middleware de la canalización.
- corsService
- ICorsService
Instancia de ICorsService.
- loggerFactory
- ILoggerFactory
Instancia de ILoggerFactory.
- policyName
- String
Nombre opcional de la directiva que se va a capturar.
Se aplica a
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory, String)
- Source:
- CorsMiddleware.cs
Crea una instancia de un nuevo objeto 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
Siguiente middleware de la canalización.
- corsService
- ICorsService
Instancia de ICorsService.
- policyProvider
- ICorsPolicyProvider
Proveedor de directivas que puede obtener .CorsPolicy
- loggerFactory
- ILoggerFactory
Instancia de ILoggerFactory.
- policyName
- String
Nombre opcional de la directiva que se va a capturar.