/// <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))); }
/// <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))); }