CorsMiddleware 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
CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy) |
Obsolete.
Instantiates a new CorsMiddleware. |
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider) |
Obsolete.
Instantiates a new CorsMiddleware. |
CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory) |
Instantiates a new CorsMiddleware. |
CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy, ILoggerFactory) |
Instantiates a new CorsMiddleware. |
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory) |
Instantiates a new CorsMiddleware. |
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, String) |
Obsolete.
Instantiates a new CorsMiddleware. |
CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory, String) |
Instantiates a new CorsMiddleware. |
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory, String) |
Instantiates a new CorsMiddleware. |
CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy)
- Source:
- CorsMiddleware.cs
- Source:
- CorsMiddleware.cs
Caution
This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory
Instantiates a new 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)
Parameters
- next
- RequestDelegate
The next middleware in the pipeline.
- corsService
- ICorsService
An instance of ICorsService.
- policy
- CorsPolicy
An instance of the CorsPolicy which can be applied.
- Attributes
Applies to
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider)
- Source:
- CorsMiddleware.cs
- Source:
- CorsMiddleware.cs
Caution
This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory
Instantiates a new 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)
Parameters
- next
- RequestDelegate
The next middleware in the pipeline.
- corsService
- ICorsService
An instance of ICorsService.
- policyProvider
- ICorsPolicyProvider
A policy provider which can get an CorsPolicy.
- Attributes
Applies to
CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory)
- Source:
- CorsMiddleware.cs
Instantiates a new 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)
Parameters
- next
- RequestDelegate
The next middleware in the pipeline.
- corsService
- ICorsService
An instance of ICorsService.
- loggerFactory
- ILoggerFactory
An instance of ILoggerFactory.
Applies to
CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy, ILoggerFactory)
- Source:
- CorsMiddleware.cs
- Source:
- CorsMiddleware.cs
Instantiates a new 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)
Parameters
- next
- RequestDelegate
The next middleware in the pipeline.
- corsService
- ICorsService
An instance of ICorsService.
- policy
- CorsPolicy
An instance of the CorsPolicy which can be applied.
- loggerFactory
- ILoggerFactory
An instance of ILoggerFactory.
Applies to
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory)
- Source:
- CorsMiddleware.cs
Instantiates a new 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)
Parameters
- next
- RequestDelegate
The next middleware in the pipeline.
- corsService
- ICorsService
An instance of ICorsService.
- policyProvider
- ICorsPolicyProvider
A policy provider which can get an CorsPolicy.
- loggerFactory
- ILoggerFactory
An instance of ILoggerFactory.
Applies to
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, String)
- Source:
- CorsMiddleware.cs
- Source:
- CorsMiddleware.cs
Caution
This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory
Instantiates a new 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)
Parameters
- next
- RequestDelegate
The next middleware in the pipeline.
- corsService
- ICorsService
An instance of ICorsService.
- policyProvider
- ICorsPolicyProvider
A policy provider which can get an CorsPolicy.
- policyName
- String
An optional name of the policy to be fetched.
- Attributes
Applies to
CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory, String)
- Source:
- CorsMiddleware.cs
Instantiates a new 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)
Parameters
- next
- RequestDelegate
The next middleware in the pipeline.
- corsService
- ICorsService
An instance of ICorsService.
- loggerFactory
- ILoggerFactory
An instance of ILoggerFactory.
- policyName
- String
An optional name of the policy to be fetched.
Applies to
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory, String)
- Source:
- CorsMiddleware.cs
Instantiates a new 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)
Parameters
- next
- RequestDelegate
The next middleware in the pipeline.
- corsService
- ICorsService
An instance of ICorsService.
- policyProvider
- ICorsPolicyProvider
A policy provider which can get an CorsPolicy.
- loggerFactory
- ILoggerFactory
An instance of ILoggerFactory.
- policyName
- String
An optional name of the policy to be fetched.