auto-creamapi-2/auto-creamapi/Core/App.cs

22 lines
540 B
C#
Raw Normal View History

using auto_creamapi.Services;
using auto_creamapi.ViewModels;
using MvvmCross;
using MvvmCross.IoC;
using MvvmCross.ViewModels;
namespace auto_creamapi.Core
{
public class App : MvxApplication
{
public override void Initialize()
{
//Mvx.IoCProvider.RegisterType<ICacheService, CacheService>();
CreatableTypes()
.EndingWith("Service")
.AsInterfaces()
.RegisterAsLazySingleton();
RegisterAppStart<MainViewModel>();
}
}
}