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.

FetchData.razor 610B

123456789101112131415161718192021222324
  1. @page "/search"
  2. @using GrpcShared.DTO.Search
  3. @using NemAnBlazor.Services.Interfaces
  4. @*@inject HttpClient Http*@
  5. @inject Blazored.SessionStorage.ISessionStorageService sessionStorage
  6. @inject ISearchClientService SearchService
  7. <PageTitle>Search</PageTitle>
  8. <h1>Search</h1>
  9. @code {
  10. protected override async Task OnInitializedAsync()
  11. {
  12. var token = await sessionStorage.GetItemAsync<string>("token");
  13. SearchRequest request = new() { Query = "aitch", Type = "track", Token = token };
  14. SearchResponse searchResponse = await SearchService.GetListSearchAsync(request);
  15. }
  16. }