first commit -push
This commit is contained in:
0
RobotNet.AppHost/Dockerfile
Normal file
0
RobotNet.AppHost/Dockerfile
Normal file
48
RobotNet.AppHost/Program.cs
Normal file
48
RobotNet.AppHost/Program.cs
Normal 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();
|
||||
31
RobotNet.AppHost/Properties/launchSettings.json
Normal file
31
RobotNet.AppHost/Properties/launchSettings.json
Normal 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"
|
||||
}
|
||||
27
RobotNet.AppHost/RobotNet.AppHost.csproj
Normal file
27
RobotNet.AppHost/RobotNet.AppHost.csproj
Normal 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>
|
||||
8
RobotNet.AppHost/appsettings.Development.json
Normal file
8
RobotNet.AppHost/appsettings.Development.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
RobotNet.AppHost/appsettings.json
Normal file
9
RobotNet.AppHost/appsettings.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning",
|
||||
"Aspire.Hosting.Dcp": "Warning"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user