Add project files.
This commit is contained in:
22
AspireApp1/AspireApp1.AppHost/AppHost.cs
Normal file
22
AspireApp1/AspireApp1.AppHost/AppHost.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
var builder = DistributedApplication.CreateBuilder(args);
|
||||
|
||||
var cache = builder.AddRedis("cache");
|
||||
|
||||
var apiService = builder.AddProject<Projects.AspireApp1_ApiService>("apiservice")
|
||||
.WithHttpHealthCheck("/health");
|
||||
|
||||
builder.AddProject<Projects.AspireApp1_Web>("webfrontend")
|
||||
.WithExternalHttpEndpoints()
|
||||
.WithHttpHealthCheck("/health")
|
||||
.WithReference(cache)
|
||||
.WaitFor(cache)
|
||||
.WithReference(apiService)
|
||||
.WaitFor(apiService);
|
||||
|
||||
builder.AddProject<Projects.WebApplication3>("webapplication3");
|
||||
|
||||
builder.AddProject<Projects.GrpcService1>("grpcservice1");
|
||||
|
||||
builder.AddProject<Projects.WebApplication5>("webapplication5");
|
||||
|
||||
builder.Build().Run();
|
||||
23
AspireApp1/AspireApp1.AppHost/AspireApp1.AppHost.csproj
Normal file
23
AspireApp1/AspireApp1.AppHost/AspireApp1.AppHost.csproj
Normal file
@@ -0,0 +1,23 @@
|
||||
<Project Sdk="Aspire.AppHost.Sdk/13.1.0">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<UserSecretsId>e8c812ae-b6a3-4aa1-aef9-055b2190c225</UserSecretsId>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\GrpcService1\GrpcService1.csproj" />
|
||||
<ProjectReference Include="..\..\WebApplication3\WebApplication3.csproj" />
|
||||
<ProjectReference Include="..\..\WebApplication5\WebApplication5.csproj" />
|
||||
<ProjectReference Include="..\AspireApp1.ApiService\AspireApp1.ApiService.csproj" />
|
||||
<ProjectReference Include="..\AspireApp1.Web\AspireApp1.Web.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Aspire.Hosting.Redis" Version="13.2.1" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
31
AspireApp1/AspireApp1.AppHost/Properties/launchSettings.json
Normal file
31
AspireApp1/AspireApp1.AppHost/Properties/launchSettings.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/launchsettings.json",
|
||||
"profiles": {
|
||||
"https": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": true,
|
||||
"applicationUrl": "https://aspireapp1.dev.localhost:17033;http://aspireapp1.dev.localhost:15048",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development",
|
||||
"DOTNET_ENVIRONMENT": "Development",
|
||||
"ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "https://localhost:21190",
|
||||
"ASPIRE_DASHBOARD_MCP_ENDPOINT_URL": "https://localhost:23233",
|
||||
"ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL": "https://localhost:22192"
|
||||
}
|
||||
},
|
||||
"http": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": true,
|
||||
"applicationUrl": "http://aspireapp1.dev.localhost:15048",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development",
|
||||
"DOTNET_ENVIRONMENT": "Development",
|
||||
"ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:19195",
|
||||
"ASPIRE_DASHBOARD_MCP_ENDPOINT_URL": "http://localhost:18083",
|
||||
"ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL": "http://localhost:20230"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
AspireApp1/AspireApp1.AppHost/appsettings.json
Normal file
9
AspireApp1/AspireApp1.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