Partager via


CorsService Constructeurs

Définition

Surcharges

CorsService(IOptions<CorsOptions>)
Obsolète.

Crée une nouvelle instance de CorsService.

CorsService(IOptions<CorsOptions>, ILoggerFactory)

Crée une nouvelle instance de CorsService.

CorsService(IOptions<CorsOptions>)

Source:
CorsService.cs
Source:
CorsService.cs

Attention

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

Crée une nouvelle instance de 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))

Paramètres

options
IOptions<CorsOptions>

Modèle d’option représentant CorsOptions.

Attributs

S’applique à

CorsService(IOptions<CorsOptions>, ILoggerFactory)

Source:
CorsService.cs
Source:
CorsService.cs
Source:
CorsService.cs

Crée une nouvelle instance de 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)

Paramètres

options
IOptions<CorsOptions>

Modèle d’option représentant CorsOptions.

loggerFactory
ILoggerFactory

L’ILoggerFactoryopérateur

S’applique à