示例#1
0
 /// <summary>
 /// Creates a new pipelineable create parentVertex type request
 /// </summary>
 /// <param name="myCreateVertexTypeRequest">The create parentVertex type request</param>
 /// <param name="mySecurity">The security token of the request initiator</param>
 /// <param name="myTransactionToken">The myOutgoingEdgeVertex transaction token</param>
 public PipelineableCreateVertexTypesRequest(RequestCreateVertexTypes myCreateVertexTypeRequest,
                                             SecurityToken mySecurity, Int64 myTransactionToken)
     : base(mySecurity, myTransactionToken)
 {
     _request = myCreateVertexTypeRequest;
 }
示例#2
0
        public TResult CreateVertexTypes <TResult>(sones.Library.Commons.Security.SecurityToken mySecurityToken, long myTransactionID, sones.GraphDB.Request.RequestCreateVertexTypes myRequestCreateVertexTypes, sones.GraphDB.Request.Converter.CreateVertexTypesResultConverter <TResult> myOutputconverter)
        {
            Stopwatch RunningTime    = Stopwatch.StartNew();
            var       svcVertexTypes = _GraphDSService.CreateVertexTypes(mySecurityToken, myTransactionID, myRequestCreateVertexTypes.VertexTypeDefinitions.Select(x => new ServiceVertexTypePredefinition(x)).ToList());
            var       vertexTypes    = svcVertexTypes.Select(x => new RemoteVertexType(x, this));

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