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.

Home.razor 550B

1234567891011121314151617181920
  1. @page "/home"
  2. @using GrpcShared.DTO
  3. @using GrpcShared.DTO.Track
  4. @using NemAnBlazor.Services.Interfaces
  5. @inject Blazored.SessionStorage.ISessionStorageService sessionStorage
  6. @inject IStatsClientService spotifyService
  7. <h3>Home</h3>
  8. <p>login radi</p>
  9. @code {
  10. protected override async Task OnInitializedAsync()
  11. {
  12. string tokenS = await sessionStorage.GetItemAsync<string>("token");
  13. TokenMessage token = new TokenMessage(tokenS);
  14. TrackResponse response = await spotifyService.GetCurrentlyPlayingTrack(token);
  15. }
  16. }