2026-04-17 15:03:22 +10:00
|
|
|
|
using LogosStorageClient;
|
2025-01-16 13:51:29 +01:00
|
|
|
|
|
2026-04-17 15:03:22 +10:00
|
|
|
|
namespace StoragePlugin.OverwatchSupport.LineConverters
|
2024-08-01 09:09:30 +02:00
|
|
|
|
{
|
|
|
|
|
|
public class PeerDroppedLineConverter : ILineConverter
|
|
|
|
|
|
{
|
2024-08-01 11:19:05 +02:00
|
|
|
|
public string Interest => "Dropping peer";
|
2024-08-01 09:09:30 +02:00
|
|
|
|
|
2026-04-17 15:03:22 +10:00
|
|
|
|
public void Process(LogosStorageLogLine line, Action<Action<OverwatchLogosStorageEvent>> addEvent)
|
2024-08-01 09:09:30 +02:00
|
|
|
|
{
|
2024-08-01 11:19:05 +02:00
|
|
|
|
var peerId = line.Attributes["peer"];
|
2024-08-01 09:09:30 +02:00
|
|
|
|
|
|
|
|
|
|
addEvent(e =>
|
|
|
|
|
|
{
|
|
|
|
|
|
e.PeerDropped = new PeerDroppedEvent
|
|
|
|
|
|
{
|
|
|
|
|
|
DroppedPeerId = peerId
|
|
|
|
|
|
};
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|