/// <summary> /// Trace the event that a client sent a command. /// </summary> /// <param name="command">The command that is sent.</param> /// <param name="remoteAddress">The client that sent the command.</param> internal void TraceCommand(string command, IPEndPoint remoteAddress) { Task.Run(() => { try { CommandInvoked?.Invoke(command, remoteAddress); } catch { } }); }
private void OnCommandInvoked(object sender, IconButtonCommand command) => CommandInvoked?.Invoke(sender, command);
public void InvokeCommand(string[] args) => CommandInvoked?.Invoke(args);