/// <summary> /// Callable by the Client. /// Returns all images which match the supplied picture Query /// </summary> /// <param name="query">query object</param> /// <returns>list of all pictures matching the query</returns> public async Task GetQuery(PictureQuery query) { var result = await _picDb.Query(query); if (query.Type == FetchType.Full) { await Clients.Caller.ImageQueryResponse(result); } else { await Clients.Caller.ShortImageQueryResponse(result.Select(p => p.Name)); } }