You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 3, 2018. It is now read-only.
hmemcpy edited this page Feb 9, 2013
·
12 revisions
Autofac takes a slightly different approach for registering types, by providing the concrete type as the first parameter. The registration is done on the ContainerBuilder instance.
Manual registration
RegisterType<T> - registers a concrete type T
RegisterType(typeof(Type)) - non generic version
Register(c => new Foo(c.Resolve<IBar>())) - register with lambda expression (only the new Foo() is inspected)