Exemplo n.º 1
0
        private async Task CheckForUpdatesAsync()
        {
            Log.Info("Checking for updates…");

            var updateService = _serviceLocator.ResolveType <IUpdateService>();


            _squirrelResult = await updateService.CheckForUpdatesAsync(new SquirrelContext());
        }
Exemplo n.º 2
0
        public ApplicationInitializationService(IServiceLocator serviceLocator,
                                                ICommandManager commandManager, IUIVisualizerService uiVisualizerService,
                                                IViewModelFactory viewModelFactory)
        {
            Argument.IsNotNull(() => serviceLocator);
            Argument.IsNotNull(() => commandManager);
            Argument.IsNotNull(() => uiVisualizerService);
            Argument.IsNotNull(() => viewModelFactory);

            _serviceLocator      = serviceLocator;
            _commandManager      = commandManager;
            _uiVisualizerService = uiVisualizerService;

            _splashScreenService = serviceLocator.ResolveType <ISplashScreenService>() as SplashScreenService;


            _squirrelResult = new SquirrelResult();
        }