Esempio n. 1
0
        public List <ServiceVertexInstance> GetVertices(SecurityToken mySecurityToken, long myTransactionToken, ServiceBaseExpression myExpression)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetVertices(myExpression);
            var Response = this.GraphDS.GetVertices <IEnumerable <IVertex> >(mySecurityToken, myTransactionToken, Request,
                                                                             ServiceReturnConverter.ConvertOnlyVertices);

            return(Response.Select(x => new ServiceVertexInstance(x)).ToList());
        }
Esempio n. 2
0
        public List <ServiceVertexInstance> GetVertices(SecurityToken mySecurityToken, Int64 myTransactionToken, ServiceVertexType myVertexType)
        {
            RequestGetVertices Request;

            if (myVertexType.Name == null)
            {
                Request = ServiceRequestFactory.MakeRequestGetVertices(myVertexType.ID);
            }
            else
            {
                Request = ServiceRequestFactory.MakeRequestGetVertices(myVertexType.Name);
            }
            var Response = this.GraphDS.GetVertices <IEnumerable <IVertex> >(mySecurityToken, myTransactionToken, Request,
                                                                             ServiceReturnConverter.ConvertOnlyVertices);

            return(Response.Select(x => new ServiceVertexInstance(x)).ToList());
        }