Dela via


CorsService Constructors

Definition

Overloads

CorsService(IOptions<CorsOptions>)
Obsolete.

Creates a new instance of the CorsService.

CorsService(IOptions<CorsOptions>, ILoggerFactory)

Creates a new instance of the CorsService.

CorsService(IOptions<CorsOptions>)

Source:
CorsService.cs
Source:
CorsService.cs

Caution

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

Creates a new instance of the 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))

Parameters

options
IOptions<CorsOptions>

The option model representing CorsOptions.

Attributes

Applies to

CorsService(IOptions<CorsOptions>, ILoggerFactory)

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

Creates a new instance of the 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)

Parameters

options
IOptions<CorsOptions>

The option model representing CorsOptions.

loggerFactory
ILoggerFactory

The ILoggerFactory.

Applies to