示例#1
0
 /// <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 { }
     });
 }
示例#2
0
 private void OnCommandInvoked(object sender, IconButtonCommand command) =>
 CommandInvoked?.Invoke(sender, command);
示例#3
0
 public void InvokeCommand(string[] args) =>
 CommandInvoked?.Invoke(args);