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.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Program.cs 649B

1234567891011121314151617
  1. using gRPCServer.Services;
  2. var builder = WebApplication.CreateBuilder(args);
  3. // Additional configuration is required to successfully run gRPC on macOS.
  4. // For instructions on how to configure Kestrel and gRPC clients on macOS, visit https://go.microsoft.com/fwlink/?linkid=2099682
  5. // Add services to the container.
  6. builder.Services.AddGrpc();
  7. var app = builder.Build();
  8. // Configure the HTTP request pipeline.
  9. app.MapGrpcService<GreeterService>();
  10. app.MapGet("/", () => "Communication with gRPC endpoints must be made through a gRPC client. To learn how to create a client, visit: https://go.microsoft.com/fwlink/?linkid=2086909");
  11. app.Run();