Skip to content

Commit

Permalink
preview 6 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
christiannagel committed Mar 27, 2024
1 parent 56822e3 commit e7b64e2
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 13 deletions.
5 changes: 3 additions & 2 deletions src/Codebreaker.AppHost/Codebreaker.AppHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Aspire.Hosting.AppHost" Version="8.0.0-preview.5.24170.4" />
<PackageReference Include="Aspire.Hosting.Azure" Version="8.0.0-preview.5.24170.4" />
<PackageReference Include="Aspire.Hosting.AppHost" Version="8.0.0-preview.6.24177.4" />
<PackageReference Include="Aspire.Hosting.Azure." Version="8.0.0-preview.6.24177.4" />
<PackageReference Include="Aspire.Hosting.Azure.CosmosDB" Version="8.0.0-preview.6.24177.4" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/Codebreaker.AppHost/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@

// the name needs to be reduced until this fix: https://github.com/Azure/azure-dev/issues/3496
// don't use cb-cosmos, because of deploy failing with the '-' in the name
//var cosmos = builder.AddAzureCosmosDB("cbcosmos")
// .AddDatabase("codebreaker");
var cosmos = builder.AddAzureCosmosDB("cbcosmos")
.AddDatabase("codebreaker");

var gameAPIs = builder.AddProject<Projects.Codebreaker_GameAPIs>("gameapis")
// .WithReference(sqlServer)
// .WithReference(cosmos)
// .WithReference(appConfig)
.WithReference(cosmos)
// .WithReference(appConfig)
.WithEnvironment("DataStore", dataStore);

builder.AddProject<Projects.CodeBreaker_Bot>("bot")
Expand Down
2 changes: 1 addition & 1 deletion src/Codebreaker.AppHost/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"Aspire.Hosting.Dcp": "Warning"
}
},
"DataStore": "InMemory"
"DataStore": "Cosmos"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Aspire.Microsoft.EntityFrameworkCore.Cosmos" Version="8.0.0-preview.5.24170.4" />
<PackageReference Include="Aspire.Microsoft.EntityFrameworkCore.Cosmos" Version="8.0.0-preview.6.24177.4" />
<PackageReference Include="CNinnovation.Codebreaker.Cosmos" Version="3.6.0-beta.19" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.3">
<PrivateAssets>all</PrivateAssets>
Expand Down
4 changes: 2 additions & 2 deletions src/Codebreaker.GameAPIs/Codebreaker.GameAPIs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Aspire.Microsoft.EntityFrameworkCore.Cosmos" Version="8.0.0-preview.5.24170.4" />
<PackageReference Include="Aspire.Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0-preview.5.24170.4" />
<PackageReference Include="Aspire.Microsoft.EntityFrameworkCore.Cosmos" Version="8.0.0-preview.6.24177.4" />
<PackageReference Include="Aspire.Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0-preview.6.24177.4" />
<PackageReference Include="CNinnovation.Codebreaker.Cosmos" Version="3.6.0-beta.19" />
<PackageReference Include="CNinnovation.Codebreaker.SqlServer" Version="3.6.0-beta.16" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.3" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<FrameworkReference Include="Microsoft.AspNetCore.App" />

<PackageReference Include="Microsoft.Extensions.Http.Resilience" Version="8.3.0" />
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" Version="8.0.0-preview.5.24170.4" />
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" Version="8.0.0-preview.6.24177.4" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.7.0" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.7.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.7.1" />
Expand Down
2 changes: 1 addition & 1 deletion src/Codebreaker.ServiceDefaults/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static IHostApplicationBuilder AddServiceDefaults(this IHostApplicationBu
http.AddStandardResilienceHandler();

// Turn on service discovery by default
http.UseServiceDiscovery();
http.AddServiceDiscovery();
});

return builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Aspire.Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0-preview.5.24170.4" />
<PackageReference Include="Aspire.Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0-preview.6.24177.4" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit e7b64e2

Please sign in to comment.