Inheritance: ISoapTransactionLink, ISoapTransactionLinkExecutor
        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;
        }
Example #2
0
        public override void Update(string name, string value, INode node, IRelationship relationship, ConnectionType connectionType, ref TransactionFramework.TransactionChain chain)
        {
            base.Update(name, value, node, relationship, connectionType, ref chain);

            TransactionFramework.UpdateMetadataTransactionLink updateMetadataTransaction = new TransactionFramework.UpdateMetadataTransactionLink();

            if (Node != null)
            {
                updateMetadataTransaction.DomainId = Node.DomainId;
            }
            else if (Relationship != null)
            {
                updateMetadataTransaction.DomainId = Relationship.DomainId;
            }

            updateMetadataTransaction.MapManager = MapManager;
            updateMetadataTransaction.Metadata   = this;
            updateMetadataTransaction.Name       = name;
            updateMetadataTransaction.Value      = value;

            chain.AddTransaction(updateMetadataTransaction);
        }
Example #3
0
        public override void Update(string name, string value, INode node, IRelationship relationship, ConnectionType connectionType, ref TransactionFramework.TransactionChain chain)
        {
            base.Update(name, value, node, relationship, connectionType, ref chain);

            TransactionFramework.UpdateMetadataTransactionLink updateMetadataTransaction = new TransactionFramework.UpdateMetadataTransactionLink();

            if (Node != null)
            {
                updateMetadataTransaction.DomainId = Node.DomainId;
            }
            else if (Relationship != null)
            {
                updateMetadataTransaction.DomainId = Relationship.DomainId;
            }

            updateMetadataTransaction.MapManager = MapManager;
            updateMetadataTransaction.Metadata = this;
            updateMetadataTransaction.Name = name;
            updateMetadataTransaction.Value = value;

            chain.AddTransaction(updateMetadataTransaction);
        }