//[Authorize] public override async Task <GetPhotosReply> GetPhotos(GetPhotosRequest request, ServerCallContext context) { List <Photo> photos = await photosService.GetPhotosAsync(request.Number); var r = new GetPhotosReply(); r.Photos.AddRange(photos.Select(ph => ph.ToGetPhotoReplyItem())); return(r); }
public IActionResult GetPhotos(GetPhotosRequest request) { var messageClientId = new MessageClientId(request.ClientId); var messageChainId = new MessageChainId(Guid.NewGuid().ToString()); var inputMessage = new GetPhotosInputMessage(messageClientId, messageChainId) { UserId = _authenticationManager.GetUserId(request.Login, request.Token), AlbumsId = request.AlbumsId }; _queueManager.SendMessage(PhotoSettings.PhotoInputQueue, inputMessage); return(Ok()); }
public GetPhotosResponse GetPhotos(GetPhotosRequest request) { throw new NotImplementedException(); }