views:

30

answers:

1

I thought this would do the trick in my Global.asax Application_Start, but it doesn't work:

var builder = new ContainerBuilder();
builder.RegisterType<ExtensibleActionInvoker>().As<IActionInvoker>();
builder.RegisterControllers(Assembly.GetExecutingAssembly()).InjectActionInvoker();

What am I missing?

A: 

User error - turns out I miss-configured my container. The above code does indeed setup setter injection for action filters.

Brian