小编Bri*_*thy的帖子

从Windows 10和Visual Studio 2015安装Makecert失踪?

我做了一个干净的Windows 10和Visual Studio 2015安装,并没有找到任何地方的makecert.exe.是否需要安装其他软件才能恢复此程序?

我查看了"C:\ Program Files(x86)\ Microsoft SDKs\Windows \\"下的所有文件夹,但没有看到任何文件夹.

我还打开了"VS2015的开发人员命令提示符"并尝试运行"makecert",但未找到.

makecert windows-10 visual-studio-2015

49
推荐指数
3
解决办法
7万
查看次数

如何使用Unity基于http请求参数动态地将服务注入到asp.net web api控制器中

我正在使用Unity将一个服务实例注入我的ASP.NET Web API控制器的构造函数中.

在下面的代码中,我想根据发出的http请求注入不同的IAuthenticationService实现.

这可能吗?

public class AuthenticateController : ApiController
{
    public AuthenticateController(IAuthenticationService authenticationService)
    {
    }
Run Code Online (Sandbox Code Playgroud)

c# asp.net unity-container asp.net-web-api

5
推荐指数
1
解决办法
1336
查看次数