private async Task CheckForUpdatesAsync() { Log.Info("Checking for updates…"); var updateService = _serviceLocator.ResolveType <IUpdateService>(); _squirrelResult = await updateService.CheckForUpdatesAsync(new SquirrelContext()); }
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(); }