♻️ No idea what happended
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using DysonNetwork.Shared.Etcd;
|
||||
using DysonNetwork.Sphere;
|
||||
using DysonNetwork.Sphere.Startup;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
@@ -14,15 +15,16 @@ builder.ConfigureAppKestrel();
|
||||
// Add metrics and telemetry
|
||||
builder.Services.AddAppMetrics();
|
||||
|
||||
// Add remote services
|
||||
builder.Services.AddMagicOnion();
|
||||
builder.Services.AddEtcdService(builder.Configuration);
|
||||
|
||||
// Add application services
|
||||
builder.Services.AddAppServices(builder.Configuration);
|
||||
builder.Services.AddAppRateLimiting();
|
||||
builder.Services.AddAppAuthentication();
|
||||
builder.Services.AddAppSwagger();
|
||||
|
||||
// Add gRPC services
|
||||
builder.Services.AddGrpc();
|
||||
|
||||
// Configure MagicOnion client for IAccountService
|
||||
builder.Services.AddSingleton<IAccountService>(provider =>
|
||||
{
|
||||
@@ -86,8 +88,4 @@ var tusDiskStore = app.Services.GetRequiredService<TusDiskStore>();
|
||||
// Configure application middleware pipeline
|
||||
app.ConfigureAppMiddleware(builder.Configuration, tusDiskStore);
|
||||
|
||||
// Remove direct gRPC service mappings for Pass services
|
||||
// app.MapGrpcService<DysonNetwork.Pass.Auth.AuthGrpcService>();
|
||||
// app.MapGrpcService<DysonNetwork.Pass.Account.AccountGrpcService>();
|
||||
|
||||
app.Run();
|
||||
Reference in New Issue
Block a user