Blazor & WASM in combination to get statistics from Spotify API for performing the song analysis. With separate microservices for auth, Spotify, user data tracking, and application, connected through gRPC with Polly.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SearchClientService.cs 636B

1234567891011121314151617181920212223
  1. using Grpc.Net.Client;
  2. using GrpcShared.DTO.Search;
  3. using GrpcShared.Interfaces;
  4. using NemAnBlazor.Services.Interfaces;
  5. using ProtoBuf.Grpc.Client;
  6. namespace NemAnBlazor.Services
  7. {
  8. public class SearchClientService : ISearchClientService
  9. {
  10. private ISearchService _serviceClient;
  11. public SearchClientService(GrpcChannel grpcChannel)
  12. {
  13. _serviceClient = grpcChannel.CreateGrpcService<ISearchService>();
  14. }
  15. public async Task<SearchResponse> GetListSearchAsync(SearchRequest request)
  16. {
  17. return await _serviceClient.ListSearchAsync(request);
  18. }
  19. }
  20. }