コード例 #1
0
ファイル: CommandQueue.cs プロジェクト: StephenE/DevoLAN
 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);
            });
        }