Inheritance: CommonOperationBase, ISuperGraphOperation, IBatchOperation
コード例 #1
0
        public void ExecuteOperation()
        {
            Response = new TransactionFramework.InProcessTransactionResponse();

            TransactionFramework.TransactionChain chain = new TransactionFramework.TransactionChain();
            chain.TransactionCompleted += ChainOnTransactionCompleted;
            while (Operations.Count > 0)
            {
                TranscludeNodesOperation operation = Operations.Dequeue();

                if (chain.NumOfTransactions > 50)
                {
                    MapManager.ExecuteTransaction(chain);
                    chain = new TransactionFramework.TransactionChain();
                }
                TransactionFramework.InProcessTransactionResponse newResponse = operation.OperationBuilder.BuildTransactionChain(ref chain);

                Response.Add(newResponse);
            }

            MapManager.ExecuteTransaction(chain);
        }
コード例 #2
0
 public void AddTranscludeNodeOperation(TranscludeNodesOperation operation)
 {
     Operations.Enqueue(operation);
 }
コード例 #3
0
 public void AddTranscludeNodeOperation(TranscludeNodesOperation operation)
 {
     Operations.Enqueue(operation);
 }