I\'m trying to resolve the dependencies of my custom AuthorizeAttribute which I use to decorate my API controllers in an MVC4 app. Problem is that I keep getting a
AuthorizeAttribute
You should configure property injection for your attribute
public class MyAuthorizeAttribute : AuthorizeAttribute { public IAuthenticationSvc AuthenticationSvc { get; set; } }
and the builder
builder.RegisterType().PropertiesAutowired();