property inject in Autofac
Posted
by Benny
on Stack Overflow
See other posts from Stack Overflow
or by Benny
Published on 2010-04-21T04:56:13Z
Indexed on
2010/04/21
5:43 UTC
Read the original article
Hit count: 989
autofac
|property-injection
I am compiling: PropertyInject wiki page
why this line:
builder.RegisterType().InjectProperties();
doesn't compile? how to do property inject in autofac?
I am using vs2010, autofac 2.1.13.813.
thanks.
EDIT:
PropertyInjection should be like this in new version of AutoFac: builder.RegisterType().PropertiesAutowired(false);
© Stack Overflow or respective owner