/// <summary> /// Process the current request and returns result using the target database. /// </summary> /// <param name="connection">Connection string to the target database where results will be fetched.</param> /// <returns>Async task that will stream results.</returns> public static Task Process(this RequestHandler rh, string connection) { var pipe = new QueryPipe(connection); var pipeAdapter = new TSqlCommandAdapter(pipe); return(rh.Process(pipeAdapter)); }
public static Task Process(this RequestHandler rh, SqlConnection conn) { var pipe = new TSqlCommandAdapter(conn); return(rh.Process(pipe)); }
public static Task Process(this RequestHandler rh, ICommand cmd) { var pipe = new TSqlCommandAdapter(cmd); return(rh.Process(pipe)); }