Exemplo n.º 1
0
 /// <summary>
 /// Creates a new pipelineable clear request
 /// </summary>
 /// <param name="myClearRequest">The clear request</param>
 /// <param name="mySecurity">The security token of the request initiator</param>
 /// <param name="myTransactionToken">The myOutgoingEdgeVertex transaction token</param>
 public PipelineableClearRequest(RequestClear myClearRequest,
                                 SecurityToken mySecurity,
                                 Int64 myTransactionToken)
     : base(mySecurity, myTransactionToken)
 {
     _request = myClearRequest;
 }
Exemplo n.º 2
0
        public TResult Clear <TResult>(sones.Library.Commons.Security.SecurityToken mySecurityToken, long myTransactionID, sones.GraphDB.Request.RequestClear myRequestClear, sones.GraphDB.Request.Converter.ClearResultConverter <TResult> myOutputconverter)
        {
            Stopwatch RunningTime = Stopwatch.StartNew();
            var       result      = _GraphDSService.Clear(mySecurityToken, myTransactionID);

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