first commit -push

This commit is contained in:
dungtt
2025-10-15 15:15:53 +07:00
parent 674ae395be
commit a9577c5756
885 changed files with 74595 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
var builder = DistributedApplication.CreateBuilder(args);
//var cache = builder.AddRedis("cache");
var identity = builder.AddProject<Projects.RobotNet_IdentityServer>("identity-server")
.WithExternalHttpEndpoints();
//.WithReference(cache)
//.WaitFor(cache);
var mapManager = builder.AddProject<Projects.RobotNet_MapManager>("map-manager")
.WithExternalHttpEndpoints()
//.WithReference(cache)
//.WaitFor(cache)
.WithReference(identity)
.WaitFor(identity);
var robotManager = builder.AddProject<Projects.RobotNet_RobotManager>("robot-manager")
.WithExternalHttpEndpoints()
//.WithReference(cache)
//.WaitFor(cache)
.WithReference(identity)
.WaitFor(identity)
.WithReference(mapManager)
.WaitFor(mapManager);
var scriptManager = builder.AddProject<Projects.RobotNet_ScriptManager>("script-manager")
.WithExternalHttpEndpoints()
//.WithReference(cache)
//.WaitFor(cache)
.WithReference(identity)
.WaitFor(identity)
.WithReference(robotManager)
.WaitFor(robotManager);
builder.AddProject<Projects.RobotNet_WebApp>("robotnet-webapp")
.WithExternalHttpEndpoints()
//.WithReference(cache)
//.WaitFor(cache)
.WithReference(identity)
.WaitFor(identity)
.WithReference(mapManager)
.WaitFor(mapManager)
.WithReference(robotManager)
.WaitFor(robotManager)
.WithReference(scriptManager)
.WaitFor(scriptManager);
builder.Build().Run();