Sdílet prostřednictvím


CorsService Konstruktory

Definice

Přetížení

CorsService(IOptions<CorsOptions>)
Zastaralé.

Vytvoří novou instanci objektu CorsService.

CorsService(IOptions<CorsOptions>, ILoggerFactory)

Vytvoří novou instanci objektu CorsService.

CorsService(IOptions<CorsOptions>)

Zdroj:
CorsService.cs
Zdroj:
CorsService.cs

Upozornění

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

Vytvoří novou instanci objektu 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))

Parametry

options
IOptions<CorsOptions>

Model volby představující CorsOptions.

Atributy

Platí pro

CorsService(IOptions<CorsOptions>, ILoggerFactory)

Zdroj:
CorsService.cs
Zdroj:
CorsService.cs
Zdroj:
CorsService.cs

Vytvoří novou instanci objektu 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)

Parametry

options
IOptions<CorsOptions>

Model volby představující CorsOptions.

loggerFactory
ILoggerFactory

Hodnota ILoggerFactory

Platí pro