/// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); this.Suspending += OnSuspending; this.Resuming += App_Resuming; this.EnteredBackground += App_EnteredBackground; var DS = new DialogService(); Repository.StoreFactory <IDialogService>(() => DS); var KEH = new KnownExceptionHandler(); Repository.StoreFactory <IKnownExceptionHandler>(() => KEH); var NS = new NavigationService(); Repository.StoreFactory <INavigationService>(() => NS); var TPS = new TilePinService(); Repository.StoreFactory <ITilePinService>(() => TPS); var TS = new ToastService(); Repository.StoreFactory <IToastService>(() => TS); var AFS = new AppFileService(); Repository.StoreFactory <IAppFileService>(() => AFS); var AMS = new AppMetadataService(); Repository.StoreFactory <IAppMetadata>(() => AMS); }
//public QBusinessEntityDataService BusinessEntityService //{ // get // { // return QuarkAppMetadataService.GetAppDataService<QBusinessEntityDataService>(); // } //} public TService GetAppDataService <TService>() where TService : ShAppDataServiceBase { return(AppMetadataService.GetAppDataService <TService>()); }