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.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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. }