1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2024-11-23 19:42:51 +01:00
Minecraft-Phantom-Panel/Controller/Phantom.Controller.Services/Instances/InstanceLogManager.cs
2023-12-05 14:27:55 +01:00

14 lines
398 B
C#

using System.Collections.Immutable;
namespace Phantom.Controller.Services.Instances;
sealed class InstanceLogManager {
public sealed record Event(Guid InstanceGuid, ImmutableArray<string> Lines);
public event EventHandler<Event>? LogsReceived;
internal void ReceiveLines(Guid instanceGuid, ImmutableArray<string> lines) {
LogsReceived?.Invoke(this, new Event(instanceGuid, lines));
}
}