asp.net mvc 3 - Is there a way to fine tune Autofac MVC3 Action Injection? -
so got action injection autofac implemented in large mvc solution, or thought.
turned out there cases did not work properly.
in 1 of views posting manually information, , model binder able match properly, here:
public actionresult someaction(string[] textinfo, bool[] boolinfo, someviewmodel viewmodel)
however enabled action injection:
builder.registercontrollers(typeof(mvcapplication).assembly).injectactioninvoker();
the first 2 parameters, being received empty arrays.
my hypothesis be, autofac figures out, not provided, , provides default value those. there way work around behavior? parameter-level attribute perhaps?
Comments
Post a Comment