Skip to content

Instantly share code, notes, and snippets.

@ssukhpinder
Created May 19, 2021 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssukhpinder/185da3908a7abeab1b9e167c8d245a07 to your computer and use it in GitHub Desktop.
Save ssukhpinder/185da3908a7abeab1b9e167c8d245a07 to your computer and use it in GitHub Desktop.
public class Query
{
public async Task<ICollection<TodoReader.WeatherForecast>> GetTodosAsync(
[Service] TodoService service,
CancellationToken cancellationToken)
{
return await service.WeatherForecastAsync(cancellationToken);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment