예제 #1
0
 /// <summary>
 /// Executes a batch of traversals.
 /// </summary>
 /// <param name="session">The session to extend.</param>
 /// <param name="batch">The batch of traversals to execute.</param>
 /// <seealso cref="Batch"/>
 public static GraphResultSet ExecuteGraph(this ISession session, ITraversalBatch batch)
 {
     return(session.ExecuteGraph(batch.ToGraphStatement()));
 }
예제 #2
0
 /// <summary>
 /// Asynchronously executes a batch of traversals.
 /// </summary>
 /// <param name="session">The session to extend.</param>
 /// <param name="batch">The batch of traversals to execute.</param>
 /// <seealso cref="Batch"/>
 public static Task <GraphResultSet> ExecuteGraphAsync(this ISession session, ITraversalBatch batch)
 {
     return(session.ExecuteGraphAsync(batch.ToGraphStatement()));
 }