I'm having a little trouble figuring out why I can't do property injection in a ViewController in a Xamarin iOS app.
My types are registered and they resolve correctly in my ViewController constructor by using this code:
myService = TinyIoCContainer.Current.Resolve<IMyService>();
But instead of assigning all deps manually, I believe I should be able to have TinyIoC "fill up" my ViewController's public properties by using:
TinyIoCContainer.Current.BuildUp (this);
in the constructor of my ViewController, but as soon as I try to run this line of code, even without any public properties specified on my ViewController - I get a stackoverflow exception and a whole lot of errors following that.
Can anyone tell me what I might be doing wrong here?