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