CorsService 构造函数

定义

重载

CorsService(IOptions<CorsOptions>)
已过时.

创建 CorsService 的新实例。

CorsService(IOptions<CorsOptions>, ILoggerFactory)

创建 CorsService 的新实例。

CorsService(IOptions<CorsOptions>)

Source:
CorsService.cs
Source:
CorsService.cs

注意

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

创建 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))

参数

options
IOptions<CorsOptions>

表示 CorsOptions的选项模型。

属性

适用于

CorsService(IOptions<CorsOptions>, ILoggerFactory)

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

创建 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)

参数

options
IOptions<CorsOptions>

表示 CorsOptions的选项模型。

loggerFactory
ILoggerFactory

ILoggerFactory

适用于