public async Task <IActionResult> GetQueue() { var query = new GetTvShowQueueQuery(); var result = await _bus.Send(query); return(Ok(result)); }
public async Task <IEnumerable <SonarrQueue> > Handle(GetTvShowQueueQuery request, CancellationToken cancellationToken) { return(await _client.GetQueueAsync(cancellationToken)); }