I have a fairly old project that needs some work doing on it, i have run update-package in nuget and now get the following in my TypeRegistry
The name 'SetAllProperties' does not exist in the current scope
The TypeRegistry is as follows
public class TypeRegistry : Registry
{
public TypeRegistry()
{
For<ILogger>().Singleton().Use<Log4NetLogger>();
this.SetAllProperties(p => p.OfType<ILogger>());
}
}
Can anyone explain why this is the case and point me to anything that could help me to resolve this problem please.
I ran into this problem as well. I think this method might have been deprecated in newer versions. I was able to accomplish setter injection using the
Policiesproperty of the Registry Class.Edit:
Just found the SetAllProperties method on Policies as well. I believe either one will inject the property.