Exemple #1
0
 /// <summary>
 /// Destroy a terminal and notify subscribers
 /// </summary>
 /// <param name="terminal">Single generic connection used by the environment to communicate with clients</param>
 public ITerminalManager DestroyTerminal(ITerminal terminal)
 {
     Terminals.Remove(terminal);
     Logger.LogInformation($"!! {terminal?.GetId()} terminal removed");
     OnTerminalDestroyed?.Invoke((ITerminal)terminal.Clone());
     terminal = null;
     return(this);
 }