Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
  • Loading branch information
eldonferranpol committed Jun 12, 2024
1 parent 0181995 commit b21c363
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Query.Cosmos/Query.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ public async Task<IEnumerable<U>> GetResults(T parameters)

public interface IRunQueries
{
Task<IEnumerable<T>> GetResults<T>(string container, string query);
Task<IEnumerable<T>> GetResults<T>((string Container, string Query) definition);
Task<IEnumerable<T>> Run<T>(string container, string query);
Task<IEnumerable<T>> Run<T>((string Container, string Query) definition);
}

public class QueryRunner : IRunQueries
{
public Task<IEnumerable<T>> GetResults<T>(string container, string query) => GetResults<T>((container, query));
public Task<IEnumerable<T>> Run<T>(string container, string query) => Run<T>((container, query));

public async Task<IEnumerable<T>> GetResults<T>((string Container, string Query) definition)
public async Task<IEnumerable<T>> Run<T>((string Container, string Query) definition)
{
return await Querying.GetResults<T>(definition);
}
Expand Down

0 comments on commit b21c363

Please sign in to comment.