示例#1
0
        /// <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));
        }
示例#2
0
        public static Task Process(this RequestHandler rh, SqlConnection conn)
        {
            var pipe = new TSqlCommandAdapter(conn);

            return(rh.Process(pipe));
        }
示例#3
0
        public static Task Process(this RequestHandler rh, ICommand cmd)
        {
            var pipe = new TSqlCommandAdapter(cmd);

            return(rh.Process(pipe));
        }