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

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();

View File

@@ -0,0 +1,31 @@
{
"profiles": {
"https": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"DOTNET_ENVIRONMENT": "Development",
"DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "https://localhost:21061",
"DOTNET_RESOURCE_SERVICE_ENDPOINT_URL": "https://localhost:22197"
},
"dotnetRunMessages": true,
"applicationUrl": "https://localhost:17070;http://localhost:15043",
"remoteDebugEnabled": false,
"authenticationMode": "None"
},
"http": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"DOTNET_ENVIRONMENT": "Development",
"DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:19047",
"DOTNET_RESOURCE_SERVICE_ENDPOINT_URL": "http://localhost:20292"
},
"dotnetRunMessages": true,
"applicationUrl": "http://localhost:15043"
}
},
"$schema": "https://json.schemastore.org/launchsettings.json"
}

View File

@@ -0,0 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">
<Sdk Name="Aspire.AppHost.Sdk" Version="9.0.0" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsAspireHost>true</IsAspireHost>
<UserSecretsId>ee4f8e12-ccfe-4b55-94bb-c86fe3a6b387</UserSecretsId>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.4.1" />
<PackageReference Include="Aspire.Hosting.Redis" Version="9.4.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\RobotNet.IdentityServer\RobotNet.IdentityServer.csproj" />
<ProjectReference Include="..\RobotNet.MapManager\RobotNet.MapManager.csproj" />
<ProjectReference Include="..\RobotNet.RobotManager\RobotNet.RobotManager.csproj" />
<ProjectReference Include="..\RobotNet.ScriptManager\RobotNet.ScriptManager.csproj" />
<ProjectReference Include="..\RobotNet.WebApp\RobotNet.WebApp.csproj" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}

View File

@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Aspire.Hosting.Dcp": "Warning"
}
}
}