Пример #1
0
 /// <summary>
 /// Creates a new pipelineable create edge type request
 /// </summary>
 /// <param name="myCreateEdgeTypeRequest">The create edge type request</param>
 /// <param name="mySecurity">The security token of the request initiator</param>
 /// <param name="myTransactionToken">The transaction token</param>
 public PipelineableCreateEdgeTypesRequest(RequestCreateEdgeTypes myCreateEdgeTypeRequest,
                                           SecurityToken mySecurity,
                                           Int64 myTransactionToken)
     : base(mySecurity, myTransactionToken)
 {
     _request = myCreateEdgeTypeRequest;
 }
Пример #2
0
        public TResult CreateEdgeTypes <TResult>(sones.Library.Commons.Security.SecurityToken mySecurityToken, long myTransactionID, sones.GraphDB.Request.RequestCreateEdgeTypes myRequestCreateEdgeTypes, sones.GraphDB.Request.Converter.CreateEdgeTypesResultConverter <TResult> myOutputconverter)
        {
            Stopwatch RunningTime  = Stopwatch.StartNew();
            var       svcEdgeTypes = _GraphDSService.CreateEdgeTypes(mySecurityToken, myTransactionID, myRequestCreateEdgeTypes.TypePredefinitions.Select(x => new ServiceEdgeTypePredefinition((EdgeTypePredefinition)x)).ToList());
            var       edgeTypes    = svcEdgeTypes.Select(x => new RemoteEdgeType(x, this)).ToList();

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