CorsMiddleware Konstruktory
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy) |
Zastaralé.
Vytvoří instanci nového CorsMiddlewareobjektu . |
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider) |
Zastaralé.
Vytvoří instanci nového CorsMiddlewareobjektu . |
CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory) |
Vytvoří instanci nového CorsMiddlewareobjektu . |
CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy, ILoggerFactory) |
Vytvoří instanci nového CorsMiddlewareobjektu . |
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory) |
Vytvoří instanci nového CorsMiddlewareobjektu . |
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, String) |
Zastaralé.
Vytvoří instanci nového CorsMiddlewareobjektu . |
CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory, String) |
Vytvoří instanci nového CorsMiddlewareobjektu . |
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory, String) |
Vytvoří instanci nového CorsMiddlewareobjektu . |
CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy)
- Zdroj:
- CorsMiddleware.cs
- Zdroj:
- CorsMiddleware.cs
Upozornění
This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory
Vytvoří instanci nového CorsMiddlewareobjektu .
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)
Parametry
- next
- RequestDelegate
Další middleware v kanálu
- corsService
- ICorsService
Instance objektu ICorsService.
- policy
- CorsPolicy
Instance, CorsPolicy kterou lze použít.
- Atributy
Platí pro
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider)
- Zdroj:
- CorsMiddleware.cs
- Zdroj:
- CorsMiddleware.cs
Upozornění
This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory
Vytvoří instanci nového CorsMiddlewareobjektu .
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)
Parametry
- next
- RequestDelegate
Další middleware v kanálu
- corsService
- ICorsService
Instance objektu ICorsService.
- policyProvider
- ICorsPolicyProvider
Poskytovatel zásad, který může získat .CorsPolicy
- Atributy
Platí pro
CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory)
- Zdroj:
- CorsMiddleware.cs
Vytvoří instanci nového CorsMiddlewareobjektu .
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)
Parametry
- next
- RequestDelegate
Další middleware v kanálu
- corsService
- ICorsService
Instance objektu ICorsService.
- loggerFactory
- ILoggerFactory
Instance objektu ILoggerFactory.
Platí pro
CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy, ILoggerFactory)
- Zdroj:
- CorsMiddleware.cs
- Zdroj:
- CorsMiddleware.cs
Vytvoří instanci nového CorsMiddlewareobjektu .
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)
Parametry
- next
- RequestDelegate
Další middleware v kanálu
- corsService
- ICorsService
Instance objektu ICorsService.
- policy
- CorsPolicy
Instance, CorsPolicy kterou lze použít.
- loggerFactory
- ILoggerFactory
Instance objektu ILoggerFactory.
Platí pro
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory)
- Zdroj:
- CorsMiddleware.cs
Vytvoří instanci nového CorsMiddlewareobjektu .
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)
Parametry
- next
- RequestDelegate
Další middleware v kanálu
- corsService
- ICorsService
Instance objektu ICorsService.
- policyProvider
- ICorsPolicyProvider
Poskytovatel zásad, který může získat .CorsPolicy
- loggerFactory
- ILoggerFactory
Instance objektu ILoggerFactory.
Platí pro
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, String)
- Zdroj:
- CorsMiddleware.cs
- Zdroj:
- CorsMiddleware.cs
Upozornění
This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory
Vytvoří instanci nového CorsMiddlewareobjektu .
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)
Parametry
- next
- RequestDelegate
Další middleware v kanálu
- corsService
- ICorsService
Instance objektu ICorsService.
- policyProvider
- ICorsPolicyProvider
Poskytovatel zásad, který může získat .CorsPolicy
- policyName
- String
Volitelný název zásady, která se má načíst.
- Atributy
Platí pro
CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory, String)
- Zdroj:
- CorsMiddleware.cs
Vytvoří instanci nového CorsMiddlewareobjektu .
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)
Parametry
- next
- RequestDelegate
Další middleware v kanálu
- corsService
- ICorsService
Instance objektu ICorsService.
- loggerFactory
- ILoggerFactory
Instance objektu ILoggerFactory.
- policyName
- String
Volitelný název zásady, která se má načíst.
Platí pro
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory, String)
- Zdroj:
- CorsMiddleware.cs
Vytvoří instanci nového CorsMiddlewareobjektu .
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)
Parametry
- next
- RequestDelegate
Další middleware v kanálu
- corsService
- ICorsService
Instance objektu ICorsService.
- policyProvider
- ICorsPolicyProvider
Poskytovatel zásad, který může získat .CorsPolicy
- loggerFactory
- ILoggerFactory
Instance objektu ILoggerFactory.
- policyName
- String
Volitelný název zásady, která se má načíst.