Freigeben über


CorsService Konstruktoren

Definition

Überlädt

CorsService(IOptions<CorsOptions>)
Veraltet.

Erstellt eine neue Instanz der CorsService.

CorsService(IOptions<CorsOptions>, ILoggerFactory)

Erstellt eine neue Instanz der CorsService.

CorsService(IOptions<CorsOptions>)

Quelle:
CorsService.cs
Quelle:
CorsService.cs

Achtung

This constructor is obsolete and will be removed in a future version.

Erstellt eine neue Instanz der CorsService.

public:
 CorsService(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Cors::Infrastructure::CorsOptions ^> ^ options);
public CorsService (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Cors.Infrastructure.CorsOptions> options);
[System.Obsolete("This constructor is obsolete and will be removed in a future version.")]
public CorsService (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Cors.Infrastructure.CorsOptions> options);
new Microsoft.AspNetCore.Cors.Infrastructure.CorsService : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Cors.Infrastructure.CorsOptions> -> Microsoft.AspNetCore.Cors.Infrastructure.CorsService
[<System.Obsolete("This constructor is obsolete and will be removed in a future version.")>]
new Microsoft.AspNetCore.Cors.Infrastructure.CorsService : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Cors.Infrastructure.CorsOptions> -> Microsoft.AspNetCore.Cors.Infrastructure.CorsService
Public Sub New (options As IOptions(Of CorsOptions))

Parameter

options
IOptions<CorsOptions>

Das Optionsmodell, das darstellt CorsOptions.

Attribute

Gilt für:

CorsService(IOptions<CorsOptions>, ILoggerFactory)

Quelle:
CorsService.cs
Quelle:
CorsService.cs
Quelle:
CorsService.cs

Erstellt eine neue Instanz der CorsService.

public:
 CorsService(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Cors::Infrastructure::CorsOptions ^> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public CorsService (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Cors.Infrastructure.CorsOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Cors.Infrastructure.CorsService : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Cors.Infrastructure.CorsOptions> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Cors.Infrastructure.CorsService
Public Sub New (options As IOptions(Of CorsOptions), loggerFactory As ILoggerFactory)

Parameter

options
IOptions<CorsOptions>

Das Optionsmodell, das darstellt CorsOptions.

loggerFactory
ILoggerFactory

Die ILoggerFactory.

Gilt für: