/// <summary> /// Creates a new pipelineable create edge type request /// </summary> /// <param name="myRequestCreateEdgeType">The create edge type request</param> /// <param name="mySecurity">The security token of the request initiator</param> /// <param name="myTransactionToken">The myOutgoingEdgeVertex transaction token</param> public PipelineableCreateEdgeTypeRequest(RequestCreateEdgeType myRequestCreateEdgeType, SecurityToken mySecurity, Int64 myTransactionToken) : base(mySecurity, myTransactionToken) { _request = myRequestCreateEdgeType; }
public TResult CreateEdgeType <TResult>(sones.Library.Commons.Security.SecurityToken mySecurityToken, long myTransactionID, sones.GraphDB.Request.RequestCreateEdgeType myRequestCreateEdgeType, sones.GraphDB.Request.Converter.CreateEdgeTypeResultConverter <TResult> myOutputconverter) { Stopwatch RunningTime = Stopwatch.StartNew(); var svcEdgeType = _GraphDSService.CreateEdgeType(mySecurityToken, myTransactionID, new ServiceEdgeTypePredefinition((EdgeTypePredefinition)myRequestCreateEdgeType.EdgeTypePredefinition)); var edgeType = new RemoteEdgeType(svcEdgeType, this); RunningTime.Stop(); return(myOutputconverter(new RequestStatistics(new TimeSpan(RunningTime.ElapsedTicks)), edgeType)); }