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.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

AuthClientService.cs 893B

123456789101112131415161718192021222324252627282930313233
  1. using Grpc.Net.Client;
  2. using GrpcShared.DTO.Auth;
  3. using GrpcShared.Interfaces;
  4. using NemAnBlazor.Services.Interfaces;
  5. using ProtoBuf.Grpc.Client;
  6. using GrpcShared;
  7. namespace NemAnBlazor.Services
  8. {
  9. public class AuthClientService : IAuthClientService
  10. {
  11. private IAuthService _serviceClient;
  12. public AuthClientService(GrpcChannel grpcChannel)
  13. {
  14. _serviceClient = grpcChannel.CreateGrpcService<IAuthService>();
  15. }
  16. public async Task<AuthResponse> GetAccessToken(CodeResponse code)
  17. {
  18. return await _serviceClient.GetAccessToken(code);
  19. }
  20. public async Task <AuthParams> GetAuthParams()
  21. {
  22. return await _serviceClient.GetAuthParams();
  23. }
  24. public Task<CodeResponse> GetCode(AuthRequest request)
  25. {
  26. throw new NotImplementedException();
  27. }
  28. }
  29. }