TransactionalNodeService.TransactionToken.GetValue C# (CSharp) Method

GetValue() public method

public GetValue ( ) : System.Guid
return System.Guid
        public Guid GetValue()
        {
            if (DelayedExecutionMapObjectId != Guid.Empty)
            {
                return DelayedExecutionMapObjectId;
            }
            else
            {
                return MapObjectId;
            }
        }

Usage Example

Esempio n. 1
0
        protected SqlCommand CreateDescriptor(out Guid newDescriptorUid, SoapDescriptorType descriptorType, TransactionToken nodeUid, Guid relationshipUid)
        {
            SqlCommand createDescriptorCommand = new SqlCommand();

            createDescriptorCommand.CommandText = "INSERT INTO dbo.[Descriptors] (DescriptorUid, DescriptorTypeUid, NodeUid, RelationshipUid) VALUES (@DescriptorUid, @DescriptorTypeUid, @NodeUid, @RelationshipUid)";
            createDescriptorCommand.Connection  = Connection;

            newDescriptorUid = Guid.NewGuid();

            createDescriptorCommand.Parameters.AddWithValue("@DescriptorUid", newDescriptorUid);
            createDescriptorCommand.Parameters.AddWithValue("@DescriptorTypeUid", descriptorType.Id);
            createDescriptorCommand.Parameters.AddWithValue("@NodeUid", nodeUid.GetValue());
            createDescriptorCommand.Parameters.AddWithValue("@RelationshipUid", relationshipUid);

            return(createDescriptorCommand);
        }
All Usage Examples Of TransactionalNodeService.TransactionToken::GetValue