void RegisterPagesVM() { CustomDependencyServiceExtended.RegisterFactory <MainPage, MainPageVM>(); }
void RegisterServices() { CustomDependencyServiceExtended.RegisterFactory <InstanceCreator, InstanceCreator>(); CustomDependencyServiceExtended.RegisterFactory <AService, SomeConcreteService>(); // CustomDependencyServiceExtended.RegisterFactory<AService, SomeConreteServiceWithConst>(() => new SomeConreteServiceWithConst(new SomeClass())); }