Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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);
 }