Example #1
0
 public void Signal(ITvCommand cmd)
 {
     Console.WriteLine($"Sending signal- {cmd}");
     SignalSent?.Invoke(this, cmd);
     Console.WriteLine($"Signal Complete- {cmd}");
 }
Example #2
0
 private void OnSignalReceived(object sender, ITvCommand cmd)
 {
     cmd.Execute(this);
 }