Example #1
0
        public virtual async Task <Response <IReadOnlyList <T> > > QueryAsync <T>(string workspaceId, string query, CancellationToken cancellationToken = default)
        {
            Response <LogsQueryResult> response = await QueryAsync(workspaceId, query, cancellationToken).ConfigureAwait(false);

            return(Response.FromValue(RowBinder.BindResults <T>(response), response.GetRawResponse()));
        }
Example #2
0
        public virtual Response <IReadOnlyList <T> > Query <T>(string workspaceId, string query, CancellationToken cancellationToken = default)
        {
            Response <LogsQueryResult> response = Query(workspaceId, query, cancellationToken);

            return(Response.FromValue(RowBinder.BindResults <T>(response), response.GetRawResponse()));
        }