Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 /// <summary>
 /// Notifies when a command sent.
 /// </summary>
 /// <param name="pCommand">The sent command.</param>
 internal void NotifyCommandSent(ANetworkCommand pCommand)
 {
     this.CommandSent?.Invoke(this, pCommand);
 }
Esempio n. 3
0
 /// <summary>
 /// Sends the specified network command.
 /// </summary>
 /// <param name="pCommand">The network command.</param>
 public void Send(ANetworkCommand pCommand)
 {
     this.PendingCommands.TryAdd(pCommand, pCommand);
 }
Esempio n. 4
0
 /// <summary>
 /// Sends the specified network command.
 /// </summary>
 /// <param name="pCommand">The network command.</param>
 public void Send(ANetworkCommand pCommand)
 {
     this.PendingCommands.Push(pCommand);
 }