Пример #1
0
 public void RemoveCommand(IBatchOperationHandle batchOperationHandle, ICommandQueueMessage command)
 {
     lock (batchOperationHandle)
     {
         TableBatchOperation    batchOperation    = (batchOperationHandle as BatchOperationHandle).BatchOperation;
         CommandQueueTableEntry commandQueueEntry = command as CommandQueueTableEntry;
         commandQueueEntry.IsValid();
         batchOperation.Delete(commandQueueEntry);
     }
 }
Пример #2
0
        public void RemoveCommand(IBatchOperationHandle batchOperationHandle, ICommandQueueMessage message)
        {
            DummyBatchOperationHandle dummyBatch = batchOperationHandle as DummyBatchOperationHandle;

            dummyBatch.QueuedOperations.Add(() =>
            {
                DummyDeployReinforcementsQueue.RemoveAll(queuedMessage => message.OperationId == queuedMessage.OperationId);
                DummyOrderAttackQueue.RemoveAll(queuedMessage => message.OperationId == queuedMessage.OperationId);
                DummyRedeployQueue.RemoveAll(queuedMessage => message.OperationId == queuedMessage.OperationId);
            });
        }