You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
627 B
19 lines
627 B
10 months ago
|
using StabilityMatrix.Core.Models.Packages.Extensions;
|
||
|
using StabilityMatrix.Core.Models.Progress;
|
||
|
|
||
|
namespace StabilityMatrix.Core.Models.PackageModification;
|
||
|
|
||
|
public class UninstallExtensionStep(
|
||
|
IPackageExtensionManager extensionManager,
|
||
|
InstalledPackage installedPackage,
|
||
|
InstalledPackageExtension packageExtension
|
||
|
) : IPackageStep
|
||
|
{
|
||
|
public Task ExecuteAsync(IProgress<ProgressReport>? progress = null)
|
||
|
{
|
||
|
return extensionManager.UninstallExtensionAsync(packageExtension, installedPackage, progress);
|
||
|
}
|
||
|
|
||
|
public string ProgressTitle => $"Uninstalling Extension {packageExtension.Title}";
|
||
|
}
|