Exemple #1
0
 public async Task <List <Photo> > Handle(PhotoRequest request, CancellationToken cancellationToken)
 {
     return(await _clientWrapper.GetAsync <List <Photo> >(string.Format(_configuration.GetSection("Urls:Photos").Value, request.AlbumId)));
 }
 public async Task <List <Album> > Handle(RequestAlbums request, CancellationToken cancellationToken)
 {
     return(await _clientWrapper.GetAsync <List <Album> >(_configuration.GetSection("Urls:Albums").Value));
 }
 public async Task <List <Comment> > Handle(RequestComment request, CancellationToken cancellationToken)
 {
     return(await _clientWrapper.GetAsync <List <Comment> >(string.Format(_configuration.GetSection("Urls:Comments").Value, request.id)));
 }