更新时间:2023-02-16 23:28:25
V5.2.2具有以下code:
V5.2.2 has the following code:
public HelpController()
: this(GlobalConfiguration.Configuration)
{
}
public HelpController(HttpConfiguration config)
{
Configuration = config;
}
在HelpController
in the HelpController
统一使用最参数的构造函数,所以要得到它的使用参数的构造函数,我改变了第二个重载受保护的:
Unity uses the constructor with the most arguments, so to get it to use the parameterless constructor I changed the second overload to protected:
protected HelpController(HttpConfiguration config)
{
Configuration = config;
}
和帮助页面都回