Freigeben über


CorsMiddleware Konstruktoren

Definition

Überlädt

CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy)
Veraltet.

Instanziiert eine neue CorsMiddleware.

CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider)
Veraltet.

Instanziiert eine neue CorsMiddleware.

CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory)

Instanziiert eine neue CorsMiddleware.

CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy, ILoggerFactory)

Instanziiert eine neue CorsMiddleware.

CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory)

Instanziiert eine neue CorsMiddleware.

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

Instanziiert eine neue CorsMiddleware.

CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory, String)

Instanziiert eine neue CorsMiddleware.

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

Instanziiert eine neue CorsMiddleware.

CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy)

Quelle:
CorsMiddleware.cs
Quelle:
CorsMiddleware.cs

Achtung

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

Instanziiert eine neue 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)

Parameter

next
RequestDelegate

Die nächste Middleware in der Pipeline.

corsService
ICorsService

Eine Instanz von ICorsService.

policy
CorsPolicy

Eine instance, die CorsPolicy angewendet werden kann.

Attribute

Gilt für:

CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider)

Quelle:
CorsMiddleware.cs
Quelle:
CorsMiddleware.cs

Achtung

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

Instanziiert eine neue 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)

Parameter

next
RequestDelegate

Die nächste Middleware in der Pipeline.

corsService
ICorsService

Eine Instanz von ICorsService.

policyProvider
ICorsPolicyProvider

Ein Richtlinienanbieter, der ein CorsPolicyabrufen kann.

Attribute

Gilt für:

CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory)

Quelle:
CorsMiddleware.cs

Instanziiert eine neue 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)

Parameter

next
RequestDelegate

Die nächste Middleware in der Pipeline.

corsService
ICorsService

Eine Instanz von ICorsService.

loggerFactory
ILoggerFactory

Eine Instanz von ILoggerFactory.

Gilt für:

CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy, ILoggerFactory)

Quelle:
CorsMiddleware.cs
Quelle:
CorsMiddleware.cs

Instanziiert eine neue 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)

Parameter

next
RequestDelegate

Die nächste Middleware in der Pipeline.

corsService
ICorsService

Eine Instanz von ICorsService.

policy
CorsPolicy

Eine instance, die CorsPolicy angewendet werden kann.

loggerFactory
ILoggerFactory

Eine Instanz von ILoggerFactory.

Gilt für:

CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory)

Quelle:
CorsMiddleware.cs

Instanziiert eine neue 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)

Parameter

next
RequestDelegate

Die nächste Middleware in der Pipeline.

corsService
ICorsService

Eine Instanz von ICorsService.

policyProvider
ICorsPolicyProvider

Ein Richtlinienanbieter, der ein CorsPolicyabrufen kann.

loggerFactory
ILoggerFactory

Eine Instanz von ILoggerFactory.

Gilt für:

CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, String)

Quelle:
CorsMiddleware.cs
Quelle:
CorsMiddleware.cs

Achtung

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

Instanziiert eine neue 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)

Parameter

next
RequestDelegate

Die nächste Middleware in der Pipeline.

corsService
ICorsService

Eine Instanz von ICorsService.

policyProvider
ICorsPolicyProvider

Ein Richtlinienanbieter, der ein CorsPolicyabrufen kann.

policyName
String

Ein optionaler Name der abzurufenden Richtlinie.

Attribute

Gilt für:

CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory, String)

Quelle:
CorsMiddleware.cs

Instanziiert eine neue 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)

Parameter

next
RequestDelegate

Die nächste Middleware in der Pipeline.

corsService
ICorsService

Eine Instanz von ICorsService.

loggerFactory
ILoggerFactory

Eine Instanz von ILoggerFactory.

policyName
String

Ein optionaler Name der abzurufenden Richtlinie.

Gilt für:

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

Quelle:
CorsMiddleware.cs

Instanziiert eine neue 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)

Parameter

next
RequestDelegate

Die nächste Middleware in der Pipeline.

corsService
ICorsService

Eine Instanz von ICorsService.

policyProvider
ICorsPolicyProvider

Ein Richtlinienanbieter, der ein CorsPolicyabrufen kann.

loggerFactory
ILoggerFactory

Eine Instanz von ILoggerFactory.

policyName
String

Ein optionaler Name der abzurufenden Richtlinie.

Gilt für: