20 lines
505 B
C#
20 lines
505 B
C#
using auto_creamapi.ViewModels;
|
|
using MvvmCross.IoC;
|
|
using MvvmCross.ViewModels;
|
|
|
|
namespace auto_creamapi.Core
|
|
{
|
|
public class MainApplication : MvxApplication
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
//Mvx.IoCProvider.RegisterType<ICacheService, CacheService>();
|
|
CreatableTypes()
|
|
.EndingWith("Service")
|
|
.AsInterfaces()
|
|
.RegisterAsLazySingleton();
|
|
|
|
RegisterAppStart<MainViewModel>();
|
|
}
|
|
}
|
|
} |