internal void SendMessage(NetCoreSimpleMessage message) { if (Running) { Byte[] sdata = Encoding.ASCII.GetBytes(message.Type); Sender.Send(sdata, sdata.Length); ConsoleEx.WriteLine($"UDP : Sent simple message \"{message.Type}\""); } }
internal void SendMessage(NetCoreSimpleMessage message) { if (Running) { byte[] sdata = Encoding.ASCII.GetBytes(message.Type); Sender.Send(sdata, sdata.Length); //Todo - Refactor this into a way to blacklist specific commands if (message.Type != "UI|KILLSWITCH_PULSE" || ConsoleEx.ShowDebug) { logger.Trace("UDP : Sent simple message \"{type}\"", message.Type); } } }
public NetCoreEventArgs(string type) { message = new NetCoreSimpleMessage(type); }