mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-25 07:42:58 +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));
|
|
}
|
|
}
|