Example #1
0
 /// <summary>
 /// Creates a <see cref="IGraphStatement"/> from the given traversal and asynchronously executes it using the
 /// provided session.
 /// </summary>
 /// <param name="session">The session instance used to execute the statement.</param>
 /// <param name="traversal">The traversal to create the statement to execute.</param>
 public static Task <GraphResultSet> ExecuteGraphAsync(this ISession session, ITraversal traversal)
 {
     return(session.ExecuteGraphAsync(DseGraph.StatementFromTraversal(traversal)));
 }
Example #2
0
 /// <summary>
 /// Creates a <see cref="IGraphStatement"/> from the given traversal and executes it using the provided session.
 /// </summary>
 /// <param name="session">The session instance used to execute the statement.</param>
 /// <param name="traversal">The traversal to create the statement to execute.</param>
 public static GraphResultSet ExecuteGraph(this ISession session, ITraversal traversal)
 {
     return(session.ExecuteGraph(DseGraph.StatementFromTraversal(traversal)));
 }