Multi-Platform Package Manager for Stable Diffusion
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.

41 lines
972 B

using System.Diagnostics.CodeAnalysis;
using StabilityMatrix.Core.Models.Progress;
namespace StabilityMatrix.Core.Models.PackageModification;
public interface IPackageModificationRunner
{
Task ExecuteSteps(IReadOnlyList<IPackageStep> steps);
bool IsRunning { get; }
[MemberNotNullWhen(true, nameof(Exception))]
bool Failed { get; }
Exception? Exception { get; }
ProgressReport CurrentProgress { get; set; }
IPackageStep? CurrentStep { get; set; }
event EventHandler<ProgressReport>? ProgressChanged;
event EventHandler<IPackageModificationRunner>? Completed;
List<string> ConsoleOutput { get; }
Guid Id { get; }
bool ShowDialogOnStart { get; init; }
bool HideCloseButton { get; init; }
string? ModificationCompleteTitle { get; init; }
string? ModificationCompleteMessage { get; init; }
string? ModificationFailedTitle { get; init; }
string? ModificationFailedMessage { get; init; }
1 year ago
}