public override void Delete(ref TransactionChain chain)
        {
            base.Delete(ref chain);

            DelayedMetadataAction delayedAction = new DelayedMetadataAction();
            delayedAction.Action = TransactionActionType.Deleted;

            DelayedActions.Enqueue(delayedAction);
        }
        public override void Delete(ref TransactionChain chain)
        {
            base.Delete(ref chain);

            DelayedMetadataAction delayedAction = new DelayedMetadataAction();

            delayedAction.Action = TransactionActionType.Deleted;

            DelayedActions.Enqueue(delayedAction);
        }
        public override void Update(string name, string value, INode node, IRelationship relationship, ConnectionType connectionType, ref TransactionChain chain)
        {
            base.Update(name, value, node, relationship, connectionType, ref chain);

            DelayedMetadataAction delayedAction = new DelayedMetadataAction();
            delayedAction.Action = TransactionActionType.Updated;
            delayedAction.Name = name;
            delayedAction.Value = value;
            delayedAction.Node = node;
            delayedAction.Relationship = relationship;
            delayedAction.ConnectionType = connectionType;

            DelayedActions.Enqueue(delayedAction);
        }
        public override void Update(string name, string value, INode node, IRelationship relationship, ConnectionType connectionType, ref TransactionChain chain)
        {
            base.Update(name, value, node, relationship, connectionType, ref chain);

            DelayedMetadataAction delayedAction = new DelayedMetadataAction();

            delayedAction.Action         = TransactionActionType.Updated;
            delayedAction.Name           = name;
            delayedAction.Value          = value;
            delayedAction.Node           = node;
            delayedAction.Relationship   = relationship;
            delayedAction.ConnectionType = connectionType;

            DelayedActions.Enqueue(delayedAction);
        }
        private UpdateMetadataTransactionLink CreateMetadataUpdateTransaction(DelayedMetadataAction action)
        {
            UpdateMetadataTransactionLink updateMetadataTransaction = null;

            if (MetadataContext.Facade != null && MetadataContext.Facade.IsConcrete)
            {
                updateMetadataTransaction = new UpdateMetadataTransactionLink();
                updateMetadataTransaction.DomainId = action.DomainId;
                updateMetadataTransaction.MapManager = MetadataContext.MapManager;
                updateMetadataTransaction.Metadata = MetadataContext.Facade;
                updateMetadataTransaction.Name = action.Name;
                updateMetadataTransaction.Value = action.Value;
            }

            return updateMetadataTransaction;
        }
        private UpdateMetadataTransactionLink CreateMetadataUpdateTransaction(DelayedMetadataAction action)
        {
            UpdateMetadataTransactionLink updateMetadataTransaction = null;

            if (MetadataContext.Facade != null && MetadataContext.Facade.IsConcrete)
            {
                updateMetadataTransaction            = new UpdateMetadataTransactionLink();
                updateMetadataTransaction.DomainId   = action.DomainId;
                updateMetadataTransaction.MapManager = MetadataContext.MapManager;
                updateMetadataTransaction.Metadata   = MetadataContext.Facade;
                updateMetadataTransaction.Name       = action.Name;
                updateMetadataTransaction.Value      = action.Value;
            }

            return(updateMetadataTransaction);
        }
 public void Enqueue(DelayedMetadataAction action)
 {
     QueuedActions.Enqueue(action);
 }
 public void Enqueue(DelayedMetadataAction action)
 {
     QueuedActions.Enqueue(action);
 }