mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-23 19:42:51 +01:00
14 lines
398 B
C#
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));
|
|
}
|
|
}
|