Example #1
0
        public async Task BuildProjectsAsync(IReadOnlyCollection <BuildableProjectVm> projects)
        {
            _informationPublishingService.Publish(InformationType.Important, "Build build Okey Dokey...");
            foreach (var proj in projects)
            {
                await proj.BuildProjectAsync();
            }

            _informationPublishingService.Publish(InformationType.Success, "Builds finished!");
        }
        public void SwitchSolution(SolutionModeConfigurationDto configurationDto)
        {
            _informationPublishingService.Publish(InformationType.Important, "Starting to switch...");
            var configuration = _mapper.Map <SolutionModeConfiguration>(configurationDto);

            _informationPublishingService.Publish(InformationType.Info, "Switching it up...");
            var solutionSwitchResult = _solutionModeSwitchingService.SwitchSolutionMode(configuration);

            SaveSolutionToFile(solutionSwitchResult.SwitchedSolutionConfigFile);
            SaveProjectsToFiles(solutionSwitchResult.SwitchedProjectConfigFiles);

            _informationPublishingService.Publish(InformationType.Success, "Finished!");
        }
 public void DeleteConfiguration(string configurationId)
 {
     _informationPublishingService.Publish(InformationType.Important, "Deleting...");
     _configurationAppService.DeleteConfiguration(configurationId);
     _informationPublishingService.Publish(InformationType.Success, "Configuration deleted!");
 }