I was trying to clean up some accessability stuff in my code, and inadvertently broke Unity dependency injection. After a while I realized that I marked some public properties t
Another solution is to use [InjectionMethod] on a method where you pass the dependency into the class.
public class MyClass {
private ILogger logger;
[InjectionMethod]
public void Init([Dependency] ILogger logger)
{
this.logger = logger;
...etc
and calling it:
container.BuildUp(instanceOfMyClass);
which will call Init with the dependency from unity.
didn´t quite solve the problem, I know...but
:-) J