Ejemplo n.º 1
0
        private TransactionFramework.DeleteNodeTransactionLink CreateNodeDeletionTransaction(DelayedNodeAction action)
        {
            TransactionFramework.DeleteNodeTransactionLink deleteTransaction = null;

            if (NodeContext.Facade != null && NodeContext.Facade.IsConcrete)
            {
                deleteTransaction = new TransactionFramework.DeleteNodeTransactionLink();
                deleteTransaction.DomainId = NodeContext.DomainId;
                deleteTransaction.MapManager = NodeContext.MapManager;
                deleteTransaction.Node = NodeContext.Facade;
            }

            return deleteTransaction;
        }
Ejemplo n.º 2
0
        private TransactionFramework.UpdateNodeTransactionLink CreateNodeUpdatedTransaction(DelayedNodeAction action)
        {
            TransactionFramework.UpdateNodeTransactionLink updateTransaction = null;

            if (NodeContext.Facade != null && NodeContext.Facade.IsConcrete)
            {
                updateTransaction = new TransactionFramework.UpdateNodeTransactionLink();
                updateTransaction.DomainId = NodeContext.DomainId;
                updateTransaction.MapManager = NodeContext.MapManager;
                updateTransaction.Node = NodeContext.Facade;
                updateTransaction.NodeType = action.NodeType;
            }

            return updateTransaction;
        }
Ejemplo n.º 3
0
        private TransactionFramework.UpdateNodeTransactionLink CreateNodeUpdatedTransaction(DelayedNodeAction action)
        {
            TransactionFramework.UpdateNodeTransactionLink updateTransaction = null;

            if (NodeContext.Facade != null && NodeContext.Facade.IsConcrete)
            {
                updateTransaction            = new TransactionFramework.UpdateNodeTransactionLink();
                updateTransaction.DomainId   = NodeContext.DomainId;
                updateTransaction.MapManager = NodeContext.MapManager;
                updateTransaction.Node       = NodeContext.Facade;
                updateTransaction.NodeType   = action.NodeType;
            }

            return(updateTransaction);
        }
Ejemplo n.º 4
0
        private TransactionFramework.DeleteNodeTransactionLink CreateNodeDeletionTransaction(DelayedNodeAction action)
        {
            TransactionFramework.DeleteNodeTransactionLink deleteTransaction = null;

            if (NodeContext.Facade != null && NodeContext.Facade.IsConcrete)
            {
                deleteTransaction            = new TransactionFramework.DeleteNodeTransactionLink();
                deleteTransaction.DomainId   = NodeContext.DomainId;
                deleteTransaction.MapManager = NodeContext.MapManager;
                deleteTransaction.Node       = NodeContext.Facade;
            }

            return(deleteTransaction);
        }
Ejemplo n.º 5
0
 public void Enqueue(DelayedNodeAction action)
 {
     QueuedActions.Enqueue(action);
 }
Ejemplo n.º 6
0
 public void Enqueue(DelayedNodeAction action)
 {
     QueuedActions.Enqueue(action);
 }