/// <summary>
 /// Creates a new pipelineable get vertex request
 /// </summary>
 /// <param name="myGetEdgeTypeRequest">The get vertex request</param>
 /// <param name="mySecurity">The security token of the request initiator</param>
 /// <param name="myTransactionToken">The transaction token</param>
 public PipelineableGetVertexRequest(
     RequestGetVertex myGetVertexRequest,
     SecurityToken mySecurity,
     Int64 myTransactionToken)
     : base(mySecurity, myTransactionToken)
 {
     _request = myGetVertexRequest;
 }
예제 #2
0
        public TResult GetVertex <TResult>(sones.Library.Commons.Security.SecurityToken mySecurityToken, long myTransactionID, sones.GraphDB.Request.RequestGetVertex myRequestGetVertex, sones.GraphDB.Request.Converter.GetVertexResultConverter <TResult> myOutputconverter)
        {
            Stopwatch RunningTime = Stopwatch.StartNew();
            var       svcVertex   = _GraphDSService.GetVertex(mySecurityToken, myTransactionID, new ServiceVertexType(myRequestGetVertex.VertexTypeName), myRequestGetVertex.VertexID);
            var       vertex      = new RemoteVertex(svcVertex, this);

            RunningTime.Stop();
            return(myOutputconverter(new RequestStatistics(new TimeSpan(RunningTime.ElapsedTicks)), vertex));
        }