In his blog Nicholas announced support for ASP.NET MVC 2.0 Areas. However, I couldn't get it working and from what I see in Autofac sourcecode, areas support is nowhere to be seen. More specifically, RegisterControllers
return builder.RegisterAssemblyTypes(controll开发者_StackOverflowerAssemblies)
.Where(t => typeof(IController).IsAssignableFrom(t) &&
t.Name.EndsWith("Controller"));
does not mention areas anywhere, nor does AutofacControllerFactory
.
Am I missing something obvious here?
I believe that Areas continue to work in the same way as they would without the Autofac controller factory - just follow the usual setup for Areas and things should just work.
精彩评论