如何做到依赖注入到行动上筛选的ASP.NET Web API 我真的卡住的进场做依赖注入到网页API的行为过滤器。我有一个动作过滤器是这样的: 公共类AuthorizationAttribute:ActionFilterAttribute { 公共IApiKeyRepository库{搞定;组; } 私人的Guid GetApiKey(字符串customerKey) { 返回Repository.GetApiKey(c .. 发布时间:2016-07-13 20:39:04 c# asp.net-web-api dependency-injection ioc-container asp.net-web-api-filters C#/.NET