DefaultOutputFormatterSelector 构造函数

定义

初始化 DefaultOutputFormatterSelector 类的新实例。

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

参数

options
IOptions<MvcOptions>

用于访问 MvcOptions

loggerFactory
ILoggerFactory

记录器工厂。

适用于