【发布时间】:2019-08-20 09:13:30
【问题描述】:
我想使用IEndpointOperations 接口中的LoadContentAsync 方法和.net core 2.2 中可用的依赖注入。请分享一些代码示例。我尝试在Startup.cs 中添加AddSingleton/AddTransient 并尝试在控制器构造函数中使用它。但我得到以下错误,
未处理的异常:System.ArgumentException:无法实例化 实现类型 服务类型的“Microsoft.Azure.Management.Cdn.IEndpointsOperations” 'Microsoft.Azure.Management.Cdn.IEndpointsOperations'。
【问题讨论】:
标签: c# azure-cdn .net-core-2.2