Ideally the following code would be detected as a cyclic dependency and immediately throw, instead it will hang and eventually stack overflow on the third line.
var container = new Container();
container.Register<SomeClass>(c => c.Resolve<SomeClass>());
container.Resolve<SomeClass>();
Ideally the following code would be detected as a cyclic dependency and immediately throw, instead it will hang and eventually stack overflow on the third line.