Example #1
0
        protected override async void OnStartup(StartupEventArgs e)
        {
            _container = DependencyInjectionFactory.Get();

            var service = _container.Resolve <ILocalizationService>();

            InitializeResources(service);
            InitializeLocalization();

            var shell = await GetShell(service);

            shell.Show();

            base.OnStartup(e);
        }
Example #2
0
        protected override async void OnStartup(StartupEventArgs e)
        {
            DispatcherUnhandledException += App_DispatcherUnhandledException;

            _container = await DependencyInjectionFactory.Get().ConfigureAwait(true);

            var localizationService = _container.Resolve <ILocalizationService>();
            var log = _container.Resolve <ILoggingService>();

            InitializeResources(localizationService);
            InitializeLocalization();

            var shell = await GetShell(localizationService, log).ConfigureAwait(true);

            shell.Show();

            base.OnStartup(e);
        }