On Sat, Feb 27, 2016 at 11:31 AM, Travis Illig <
travis...@gmail.com> wrote:
> Autofac should autowire the constructors for you as long as you have all the dependencies also registered with the container. We have some docs with examples here:
http://autofac.readthedocs.org/en/latest/integration/mvc.html
>
> If you still have usage questions, we (and a LOT of others) monitor StackOverflow - just tag your question "autofac".
Thanks. Been there; the key seems to be in SetResolver.
WithParameter doesn't hurt if there are any special cases, for
instance, but like you said, is probably unnecessary with sufficient
auto-wiring.
> --
> You received this message because you are subscribed to a topic in the Google Groups "Autofac" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/autofac/AzQfLyUYwlU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
autofac+u...@googlegroups.com.
> To post to this group, send email to
aut...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/autofac.
> For more options, visit
https://groups.google.com/d/optout.