public void ExecuteOperation() { Response = new TransactionFramework.InProcessTransactionResponse(); TransactionFramework.TransactionChain chain = new TransactionFramework.TransactionChain(); chain.TransactionCompleted += ChainOnTransactionCompleted; while (Operations.Count > 0) { ConnectTranscludedNodesOperation 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); }
public void AddConnectTranscludedNodesOperation(ConnectTranscludedNodesOperation operation) { Operations.Enqueue(operation); }