What is Inversion of Control (IOC) in FreshMvvm

ArvindrajaArvindraja INMember ✭✭✭

What is IOC in FreshMvvm? While learning it I came across IOC & read some definition too which not able to make out.

We don’t need to include our own IOC container, FreshMvvm comes with a IOC container built-in. It’s using TinyIOC underneath, but with different naming to avoid conflicts.

I developed sample project using FreshMvvm for that I have this code in App.cs class

public App()
    FreshIOC.Container.Register<IContactRepository, ContectRepository>();  
    var mainPage = FreshPageModelResolver.ResolvePageModel<AddContactPageModel>();
    MainPage = new FreshNavigationContainer(mainPage);

Why are we registering some Container at the startup of project? using interface & class which implementing it. I wonder what is actual implementation of IOC?

Sign In or Register to comment.