Skip to content

Commit 8bcd4ca

Browse files
committed
dummy
1 parent 7c7f56f commit 8bcd4ca

34 files changed

+1036
-0
lines changed

eng/Dependencies.props

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@ and are generated based on the last package release.
1313
</PropertyGroup>
1414

1515
<ItemGroup Label=".NET team dependencies">
16+
<LatestPackageReference Include="Microsoft.AspNetCore.OpenApi" />
17+
<LatestPackageReference Include="Microsoft.Extensions.Http.Resilience"/>
18+
<LatestPackageReference Include="Microsoft.Extensions.ServiceDiscovery"/>
19+
20+
<LatestPackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol"/>
21+
<LatestPackageReference Include="OpenTelemetry.Extensions.Hosting"/>
22+
<LatestPackageReference Include="OpenTelemetry.Instrumentation.AspNetCore"/>
23+
<LatestPackageReference Include="OpenTelemetry.Instrumentation.Http"/>
24+
<LatestPackageReference Include="OpenTelemetry.Instrumentation.Runtime"/>
25+
26+
<LatestPackageReference Include="Aspire.Hosting.AppHost" />
27+
<LatestPackageReference Include="Aspire.Hosting.Redis" />
28+
<LatestPackageReference Include="Aspire.Dashboard.Sdk.win-x64"/>
29+
<LatestPackageReference Include="Aspire.Hosting.Orchestration.win-x64"/>
30+
<LatestPackageReference Include="Aspire.StackExchange.Redis.OutputCaching"/>
31+
1632
<LatestPackageReference Include="Microsoft.AspNetCore.Razor.Language" />
1733
<LatestPackageReference Include="Microsoft.AspNetCore.Mvc.Razor.Extensions" />
1834
<LatestPackageReference Include="Microsoft.Azure.SignalR" />

eng/Versions.props

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,20 @@
206206
<MicrosoftNETCoreAppRuntimeVersion>$(MicrosoftNETCoreAppRuntimewinx64Version)</MicrosoftNETCoreAppRuntimeVersion>
207207
</PropertyGroup>
208208
<PropertyGroup Label="Manual">
209+
210+
<OpenTelemetryExporterOpenTelemetryProtocolVersion>1.9.0</OpenTelemetryExporterOpenTelemetryProtocolVersion>
211+
<OpenTelemetryExtensionsHostingVersion>1.9.0</OpenTelemetryExtensionsHostingVersion>
212+
<OpenTelemetryInstrumentationAspNetCoreVersion>1.9.0</OpenTelemetryInstrumentationAspNetCoreVersion>
213+
<OpenTelemetryInstrumentationHttpVersion>1.9.0</OpenTelemetryInstrumentationHttpVersion>
214+
<OpenTelemetryInstrumentationRuntimeVersion>1.9.0</OpenTelemetryInstrumentationRuntimeVersion>
215+
<MicrosoftExtensionsHttpResilienceVersion>9.0.0</MicrosoftExtensionsHttpResilienceVersion>
216+
<MicrosoftExtensionsServiceDiscoveryVersion>9.0.0</MicrosoftExtensionsServiceDiscoveryVersion>
217+
<AspireHostingOrchestrationwinx64Version>9.0.0</AspireHostingOrchestrationwinx64Version>
218+
<AspireDashboardSdkwinx64Version>9.0.0</AspireDashboardSdkwinx64Version>
219+
<AspireHostingRedisVersion>9.0.0</AspireHostingRedisVersion>
220+
<AspireHostingAppHostVersion>9.0.0</AspireHostingAppHostVersion>
221+
<AspireStackExchangeRedisOutputCachingVersion>9.1.0</AspireStackExchangeRedisOutputCachingVersion>
222+
209223
<!-- Dependencies from maintenance-packages -->
210224
<MicrosoftBCLHashCodeVersion>6.0.0</MicrosoftBCLHashCodeVersion>
211225
<MicrosoftIoRedistVersion>6.1.3</MicrosoftIoRedistVersion>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net10.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
<DisableTransitiveFrameworkReferences>true</DisableTransitiveFrameworkReferences>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<ProjectReference Include="..\AspireApp1.ServiceDefaults\AspireApp1.ServiceDefaults.csproj" />
12+
</ItemGroup>
13+
14+
<ItemGroup>
15+
<Reference Include="Microsoft.AspNetCore" />
16+
<Reference Include="Microsoft.AspNetCore.Http" />
17+
<Reference Include="Microsoft.AspNetCore.Components.Server" />
18+
<Reference Include="Microsoft.AspNetCore.HttpsPolicy" />
19+
<Reference Include="Microsoft.AspNetCore.Mvc" />
20+
<Reference Include="Microsoft.AspNetCore.Diagnostics" />
21+
<Reference Include="Microsoft.AspNetCore.Diagnostics.HealthChecks" />
22+
<Reference Include="Microsoft.Extensions.Diagnostics.HealthChecks" />
23+
<Reference Include="Aspire.StackExchange.Redis.OutputCaching" Version="9.0.0" />
24+
<Reference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.0" />
25+
</ItemGroup>
26+
27+
</Project>
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
var builder = WebApplication.CreateBuilder(args);
5+
6+
// Add service defaults & Aspire client integrations.
7+
builder.AddServiceDefaults();
8+
9+
// Add services to the container.
10+
builder.Services.AddProblemDetails();
11+
12+
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
13+
builder.Services.AddOpenApi();
14+
15+
var app = builder.Build();
16+
17+
// Configure the HTTP request pipeline.
18+
app.UseExceptionHandler();
19+
20+
if (app.Environment.IsDevelopment())
21+
{
22+
app.MapOpenApi();
23+
}
24+
25+
string[] summaries = ["Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"];
26+
27+
app.MapGet("/weatherforecast", () =>
28+
{
29+
var forecast = Enumerable.Range(1, 5).Select(index =>
30+
new WeatherForecast
31+
(
32+
DateOnly.FromDateTime(DateTime.Now.AddDays(index)),
33+
Random.Shared.Next(-20, 55),
34+
summaries[Random.Shared.Next(summaries.Length)]
35+
))
36+
.ToArray();
37+
return forecast;
38+
})
39+
.WithName("GetWeatherForecast");
40+
41+
app.MapDefaultEndpoints();
42+
43+
app.Run();
44+
45+
record WeatherForecast(DateOnly Date, int TemperatureC, string? Summary)
46+
{
47+
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
48+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://json.schemastore.org/launchsettings.json",
3+
"profiles": {
4+
"http": {
5+
"commandName": "Project",
6+
"dotnetRunMessages": true,
7+
"launchBrowser": false,
8+
"applicationUrl": "http://localhost:5551",
9+
"environmentVariables": {
10+
"ASPNETCORE_ENVIRONMENT": "Development"
11+
}
12+
},
13+
"https": {
14+
"commandName": "Project",
15+
"dotnetRunMessages": true,
16+
"launchBrowser": false,
17+
"applicationUrl": "https://localhost:7496;http://localhost:5551",
18+
"environmentVariables": {
19+
"ASPNETCORE_ENVIRONMENT": "Development"
20+
}
21+
}
22+
}
23+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"Logging": {
3+
"LogLevel": {
4+
"Default": "Information",
5+
"Microsoft.AspNetCore": "Warning"
6+
}
7+
}
8+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"Logging": {
3+
"LogLevel": {
4+
"Default": "Information",
5+
"Microsoft.AspNetCore": "Warning"
6+
}
7+
},
8+
"AllowedHosts": "*"
9+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<Sdk Name="Aspire.AppHost.Sdk" Version="9.0.0" />
4+
5+
<PropertyGroup>
6+
<OutputType>Exe</OutputType>
7+
<TargetFramework>net10.0</TargetFramework>
8+
<ImplicitUsings>enable</ImplicitUsings>
9+
<Nullable>enable</Nullable>
10+
<IsAspireHost>true</IsAspireHost>
11+
<UserSecretsId>305cc722-e514-4d8f-878b-a656f87e31d7</UserSecretsId>
12+
<SkipAddAspireDefaultReferences>true</SkipAddAspireDefaultReferences>
13+
<DisableTransitiveFrameworkReferences>true</DisableTransitiveFrameworkReferences>
14+
</PropertyGroup>
15+
16+
<ItemGroup>
17+
<ProjectReference Include="..\AspireApp1.ApiService\AspireApp1.ApiService.csproj" />
18+
<ProjectReference Include="..\AspireApp1.Web\AspireApp1.Web.csproj" />
19+
</ItemGroup>
20+
21+
<ItemGroup>
22+
<Reference Include="Microsoft.AspNetCore" />
23+
<Reference Include="Microsoft.AspNetCore.Http" />
24+
<Reference Include="Microsoft.AspNetCore.Components.Server" />
25+
<Reference Include="Microsoft.AspNetCore.HttpsPolicy" />
26+
<Reference Include="Microsoft.AspNetCore.Mvc" />
27+
<Reference Include="Microsoft.AspNetCore.Diagnostics" />
28+
<Reference Include="Microsoft.AspNetCore.Diagnostics.HealthChecks" />
29+
<Reference Include="Microsoft.Extensions.Diagnostics.HealthChecks" />
30+
<Reference Include="Aspire.Hosting.AppHost" Version="9.0.0" />
31+
<Reference Include="Aspire.Hosting.Redis" Version="9.0.0" />
32+
33+
<PackageReference Include="Aspire.Dashboard.Sdk.win-x64" Version="9.0.0" IsImplicitlyDefined="true">
34+
<AllowExplicitReference>true</AllowExplicitReference>
35+
</PackageReference>
36+
<PackageReference Include="Aspire.Hosting.Orchestration.win-x64" Version="9.0.0" IsImplicitlyDefined="true">
37+
<AllowExplicitReference>true</AllowExplicitReference>
38+
</PackageReference>
39+
40+
<!--
41+
<Reference Include="Aspire.Dashboard.Sdk.win-x64" Version="9.0.0" IsImplicitlyDefined="true" />
42+
<Reference Include="Aspire.Hosting.Orchestration.win-x64" Version="9.0.0" IsImplicitlyDefined="true" />
43+
-->
44+
</ItemGroup>
45+
46+
</Project>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
var builder = DistributedApplication.CreateBuilder(args);
5+
6+
var cache = builder.AddRedis("cache");
7+
8+
var apiService = builder.AddProject<Projects.AspireApp1_ApiService>("apiservice");
9+
10+
builder.AddProject<Projects.AspireApp1_Web>("webfrontend")
11+
.WithExternalHttpEndpoints()
12+
.WithReference(cache)
13+
.WaitFor(cache)
14+
.WithReference(apiService)
15+
.WaitFor(apiService);
16+
17+
builder.Build().Run();
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "https://json.schemastore.org/launchsettings.json",
3+
"profiles": {
4+
"https": {
5+
"commandName": "Project",
6+
"dotnetRunMessages": true,
7+
"launchBrowser": true,
8+
"applicationUrl": "https://localhost:17202;http://localhost:15121",
9+
"environmentVariables": {
10+
"ASPNETCORE_ENVIRONMENT": "Development",
11+
"DOTNET_ENVIRONMENT": "Development",
12+
"DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "https://localhost:21047",
13+
"DOTNET_RESOURCE_SERVICE_ENDPOINT_URL": "https://localhost:22054"
14+
}
15+
},
16+
"http": {
17+
"commandName": "Project",
18+
"dotnetRunMessages": true,
19+
"launchBrowser": true,
20+
"applicationUrl": "http://localhost:15121",
21+
"environmentVariables": {
22+
"ASPNETCORE_ENVIRONMENT": "Development",
23+
"DOTNET_ENVIRONMENT": "Development",
24+
"DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:19030",
25+
"DOTNET_RESOURCE_SERVICE_ENDPOINT_URL": "http://localhost:20180"
26+
}
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)