Example #1
0
        private async Task InitializeAppAsync(LaunchActivatedEventArgs e)
        {
            _log = Startup.ServiceProvider.GetService <ILogger>();
            _lifecycleManager = Startup.ServiceProvider.GetService <IAppLifecycleManager>();

            if (await _lifecycleManager.IsFirstRun())
            {
                await _lifecycleManager.InitializeAppForFirstRun();
            }

            InitializeShell(e);
        }
Example #2
0
        private async Task InitializeAppAsync(LaunchActivatedEventArgs e)
        {
            var ioc = new IocBootstrapper();

            _log = ServiceLocator.Current.GetInstance <ILogger>();
            _lifecycleManager = ServiceLocator.Current.GetInstance <IAppLifecycleManager>();

            if (await _lifecycleManager.IsFirstRun())
            {
                await _lifecycleManager.InitializeAppForFirstRun();
            }

            InitializeShell(e);
        }