Beispiel #1
0
        public TransactionToken AddRelationship(TransactionToken domainId, Dictionary <SoapDescriptorType, TransactionToken> nodes, SoapRelationshipType relationshipType, string originalId)
        {
            AddRelationshipTransactionOperation operation = new AddRelationshipTransactionOperation(Connection, TokenFactory);

            foreach (KeyValuePair <SoapDescriptorType, TransactionToken> keyValuePair in nodes)
            {
                nodes[keyValuePair.Key] = TokenFactory.ProcessToken(keyValuePair.Value);
            }

            operation.DomainId         = TokenFactory.ProcessToken(domainId);
            operation.Nodes            = nodes;
            operation.RelationshipType = relationshipType;
            operation.OriginalId       = originalId;

            Operations.Enqueue(operation);

            return(operation.ResultTokens.First());
        }
        public TransactionToken AddRelationship(TransactionToken domainId, Dictionary<SoapDescriptorType, TransactionToken> nodes, SoapRelationshipType relationshipType, string originalId)
        {
            AddRelationshipTransactionOperation operation = new AddRelationshipTransactionOperation(Connection, TokenFactory);

            foreach (KeyValuePair<SoapDescriptorType, TransactionToken> keyValuePair in nodes)
            {
                nodes[keyValuePair.Key] = TokenFactory.ProcessToken(keyValuePair.Value);
            }

            operation.DomainId = TokenFactory.ProcessToken(domainId);
            operation.Nodes = nodes;
            operation.RelationshipType = relationshipType;
            operation.OriginalId = originalId;

            Operations.Enqueue(operation);

            return operation.ResultTokens.First();
        }