mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-03 05:53:12 +00:00
23 lines
557 B
C#
23 lines
557 B
C#
using CodexClient;
|
|
|
|
namespace CodexPlugin.OverwatchSupport.LineConverters
|
|
{
|
|
public class PeerDroppedLineConverter : ILineConverter
|
|
{
|
|
public string Interest => "Dropping peer";
|
|
|
|
public void Process(CodexLogLine line, Action<Action<OverwatchCodexEvent>> addEvent)
|
|
{
|
|
var peerId = line.Attributes["peer"];
|
|
|
|
addEvent(e =>
|
|
{
|
|
e.PeerDropped = new PeerDroppedEvent
|
|
{
|
|
DroppedPeerId = peerId
|
|
};
|
|
});
|
|
}
|
|
}
|
|
}
|