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.
25 lines
747 B
25 lines
747 B
1 year ago
|
using StabilityMatrix.Core.Models.Progress;
|
||
|
using StabilityMatrix.Core.Services;
|
||
|
|
||
|
namespace StabilityMatrix.Core.Models.PackageModification;
|
||
|
|
||
|
public class SetPackageInstallingStep : IPackageStep
|
||
|
{
|
||
|
private readonly ISettingsManager settingsManager;
|
||
|
private readonly string packageName;
|
||
|
|
||
|
public SetPackageInstallingStep(ISettingsManager settingsManager, string packageName)
|
||
|
{
|
||
|
this.settingsManager = settingsManager;
|
||
|
this.packageName = packageName;
|
||
|
}
|
||
|
|
||
|
public Task ExecuteAsync(IProgress<ProgressReport>? progress = null)
|
||
|
{
|
||
|
settingsManager.PackageInstallsInProgress.Add(packageName);
|
||
|
return Task.CompletedTask;
|
||
|
}
|
||
|
|
||
|
public string ProgressTitle => "Starting Package Installation";
|
||
|
}
|