private static Stream <ExecutingQuery> ExecutingQueriesWithId(long id, KernelTransactionHandle txHandle) { return(txHandle.ExecutingQueries().filter(q => q.internalQueryId() == id)); }
private static Stream <ExecutingQuery> ExecutingQueriesWithIds(ISet <long> ids, KernelTransactionHandle txHandle) { return(txHandle.ExecutingQueries().filter(q => ids.Contains(q.internalQueryId()))); }