2020-12-25 10:49:51 -05:00
|
|
|
using auto_creamapi.ViewModels;
|
|
|
|
using MvvmCross.IoC;
|
|
|
|
using MvvmCross.ViewModels;
|
|
|
|
|
|
|
|
namespace auto_creamapi.Core
|
|
|
|
{
|
2023-12-23 14:51:30 -05:00
|
|
|
public class MainApplication : MvxApplication
|
2020-12-25 10:49:51 -05:00
|
|
|
{
|
|
|
|
public override void Initialize()
|
|
|
|
{
|
|
|
|
//Mvx.IoCProvider.RegisterType<ICacheService, CacheService>();
|
|
|
|
CreatableTypes()
|
|
|
|
.EndingWith("Service")
|
|
|
|
.AsInterfaces()
|
|
|
|
.RegisterAsLazySingleton();
|
|
|
|
|
|
|
|
RegisterAppStart<MainViewModel>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|