Inheritance: ISoapTransactionLink, ISoapTransactionLinkExecutor
Beispiel #1
0
        private TransactionFramework.UpdateRelationshipTransactionLink CreateNewUpdateRelationship()
        {
            TransactionFramework.UpdateRelationshipTransactionLink updateRelationship = new TransactionFramework.UpdateRelationshipTransactionLink();
            updateRelationship.DomainId         = DomainId;
            updateRelationship.MapManager       = MapManager;
            updateRelationship.Relationship     = this;
            updateRelationship.RelationshipType = null;

            return(updateRelationship);
        }
        private UpdateRelationshipTransactionLink CreateRelationshipUpdatedTransaction(DelayedRelationshipAction action)
        {
            UpdateRelationshipTransactionLink updateTransaction = null;

            if (RelationshipContext.Facade != null && RelationshipContext.Facade.IsConcrete)
            {
                updateTransaction = new UpdateRelationshipTransactionLink();
                updateTransaction.DomainId = RelationshipContext.DomainId;
                updateTransaction.MapManager = RelationshipContext.MapManager;
                updateTransaction.Relationship = RelationshipContext.Facade;
                updateTransaction.RelationshipType = null;
            }

            return updateTransaction;
        }
Beispiel #3
0
        public override void Update(RelationshipType relationshipType, ref TransactionFramework.TransactionChain chain)
        {
            RelationshipType = relationshipType;

            if (LastUpdateRelationship != null && LastUpdateRelationship.TransactionStatus == TransactionFramework.ServerStatus.ProcessingClient)
            {
                LastUpdateRelationship.RelationshipType = relationshipType;
            }
            else
            {
                LastUpdateRelationship = CreateNewUpdateRelationship();
                LastUpdateRelationship.RelationshipType = relationshipType;
                chain.AddTransaction(LastUpdateRelationship);
            }

            chain.TransactionExecuting += OnTransactionExecuting;
        }
Beispiel #4
0
        public override void ConnectNode(ConnectionType connectionType, INode node, ref TransactionFramework.TransactionChain chain)
        {
            base.ConnectNode(connectionType, node, ref chain);

            if (LastUpdateRelationship != null && LastUpdateRelationship.TransactionStatus == TransactionFramework.ServerStatus.ProcessingClient)
            {
                LastUpdateRelationship.AddNode(connectionType, node);
            }
            else
            {
                LastUpdateRelationship = CreateNewUpdateRelationship();
                LastUpdateRelationship.AddNode(connectionType, node);
                chain.AddTransaction(LastUpdateRelationship);
            }

            chain.TransactionExecuting += OnTransactionExecuting;
        }
Beispiel #5
0
 private void OnTransactionExecuting(object sender, System.EventArgs e)
 {
     LastUpdateRelationship = null;
 }
Beispiel #6
0
        public override void Update(RelationshipType relationshipType, ref TransactionFramework.TransactionChain chain)
        {
            RelationshipType = relationshipType;

            if (LastUpdateRelationship != null && LastUpdateRelationship.TransactionStatus == TransactionFramework.ServerStatus.ProcessingClient)
            {
                LastUpdateRelationship.RelationshipType = relationshipType;
            }
            else
            {
                LastUpdateRelationship = CreateNewUpdateRelationship();
                LastUpdateRelationship.RelationshipType = relationshipType;
                chain.AddTransaction(LastUpdateRelationship);
            }

            chain.TransactionExecuting += OnTransactionExecuting;
        }
Beispiel #7
0
        public override void ConnectNode(ConnectionType connectionType, INode node, ref TransactionFramework.TransactionChain chain)
        {
            base.ConnectNode(connectionType, node, ref chain);

            if (LastUpdateRelationship != null && LastUpdateRelationship.TransactionStatus == TransactionFramework.ServerStatus.ProcessingClient)
            {
                LastUpdateRelationship.AddNode(connectionType, node);
            }
            else
            {
                LastUpdateRelationship = CreateNewUpdateRelationship();
                LastUpdateRelationship.AddNode(connectionType, node);
                chain.AddTransaction(LastUpdateRelationship);
            }

            chain.TransactionExecuting += OnTransactionExecuting;
        }
Beispiel #8
0
 private void OnTransactionExecuting(object sender, System.EventArgs e)
 {
     LastUpdateRelationship = null;
 }
Beispiel #9
0
        private TransactionFramework.UpdateRelationshipTransactionLink CreateNewUpdateRelationship()
        {
            TransactionFramework.UpdateRelationshipTransactionLink updateRelationship = new TransactionFramework.UpdateRelationshipTransactionLink();
            updateRelationship.DomainId = DomainId;
            updateRelationship.MapManager = MapManager;
            updateRelationship.Relationship = this;
            updateRelationship.RelationshipType = null;

            return updateRelationship;
        }