/// <summary> Adds a general strategy. This strategy is applied to all queued and dequeued commands. </summary> /// <param name="generalStrategy"> The general strategy. </param> public void AddGeneralStrategy(GeneralStrategy generalStrategy) { // Give strategy access to queue generalStrategy.CommandQueue = Queue; // Add to general strategy list GeneralStrategies.Add(generalStrategy); }
/// <summary> Adds a general command strategy to the send queue. This will be executed on every enqueued and dequeued command. </summary> /// <param name="generalStrategy"> The general strategy for the send queue. </param> public void AddSendCommandStrategy(GeneralStrategy generalStrategy) { _sendCommandQueue.AddGeneralStrategy(generalStrategy); }
/// <summary> Adds a general command strategy to the receive queue. This will be executed on every enqueued and dequeued command. </summary> /// <param name="generalStrategy"> The general strategy for the receive queue. </param> public void AddReceiveCommandStrategy(GeneralStrategy generalStrategy) { _receiveCommandQueue.AddGeneralStrategy(generalStrategy); }