I am using unity in a Winforms app by injecting the dependency into the constructor of the form (I know this is not best practice) but it does work but I am getting a stackoverflowexception when I am trying to load the mdi form.
is there any way to trace what unity is trying to resolve and somehow find out what is happening?
I have a working example that I know works using this 'design'.
I know this is not an ideal design and I plan on introducing a Presenter down the line but for now this should work and I don't know why it is not
EDIT: I know I have services that reference each other for example
public class Service1(IService2, IService3, IService4):IService1
public class Service2(IService1, IService5):IService2
will this cause an exception?
EDIT2: yes I just created an quick app with this circular reference as listed in my first edit and I got a StackOverflowException - obviously not allowed.