/// <summary> /// Notifies when a command sent. /// </summary> /// <param name="pCommand">The sent command.</param> internal void NotifyCommandSent(ANetworkCommand pCommand) { this.CommandSent?.Invoke(this, pCommand); ANetworkCommand lRemoveCommand; this.PendingCommands.TryRemove(pCommand, out lRemoveCommand); }
/// <summary> /// Notifies when a command sent. /// </summary> /// <param name="pCommand">The sent command.</param> internal void NotifyCommandSent(ANetworkCommand pCommand) { this.CommandSent?.Invoke(this, pCommand); }
/// <summary> /// Sends the specified network command. /// </summary> /// <param name="pCommand">The network command.</param> public void Send(ANetworkCommand pCommand) { this.PendingCommands.TryAdd(pCommand, pCommand); }
/// <summary> /// Sends the specified network command. /// </summary> /// <param name="pCommand">The network command.</param> public void Send(ANetworkCommand pCommand) { this.PendingCommands.Push(pCommand); }