protected override async Task ExecuteAsync(IEntityValue projectEntity, ILaunchSettingsActionService launchSettingsActionService, CancellationToken cancellationToken) { ILaunchProfile?newLaunchProfile = await launchSettingsActionService.AddLaunchProfileAsync(_executableStep.CommandName, _executableStep.NewProfileName, cancellationToken); if (newLaunchProfile is not null) { AddedLaunchProfiles.Add((projectEntity, newLaunchProfile)); } }
protected override async Task ExecuteAsync(IEntityValue projectEntity, ILaunchSettingsActionService launchSettingsActionService, CancellationToken cancellationToken) { await launchSettingsActionService.RemoveLaunchProfileAsync(_executableStep.ProfileName, cancellationToken); RemovedLaunchProfiles.Add((projectEntity, _executableStep.ProfileName)); }