Workshop - Reworked installation management

This commit is contained in:
Robert committed 2024-03-30 17:55:51 +01:00
1 parent d6f1ba9aad
commit 6b4ed48d05
28 files changed
+514 -197

No files matched your search

@@ -20,4 +20,6 @@ public interface IWorkshopService
void Initialize();
public record WorkshopStatus(bool IsReachable, string Message);
event EventHandler<InstalledEntry>? OnInstalledEntrySaved;
}
@@ -172,6 +172,8 @@ public class WorkshopService : IWorkshopService
{
entry.Save();
_entryRepository.Save(entry.Entity);
OnInstalledEntrySaved?.Invoke(this, entry);
}
/// <inheritdoc />
@@ -231,4 +233,6 @@ public class WorkshopService : IWorkshopService
_logger.Warning(e, "Failed to remove orphaned workshop entry at {Directory}", directory);
}
}
public event EventHandler<InstalledEntry>? OnInstalledEntrySaved;
}