Skip to content

Commit 30550cb

Browse files
authored
Use the new CreateSlimBuilder API
The `dotnet new api -aot` template is getting updated to use the new slim API in dotnet/aspnetcore#46040. Updating the benchmark to match.
1 parent fcf93cc commit 30550cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Goldilocks/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Text.Json.Serialization;
22
using Goldilocks;
33

4-
var builder = WebApplication.CreateBuilder(args);
4+
var builder = WebApplication.CreateSlimBuilder(args);
55
builder.Logging.ClearProviders(); // Clearing for benchmark scenario, template has AddConsole();
66

77
builder.Services.ConfigureHttpJsonOptions(options =>
@@ -27,4 +27,4 @@
2727
internal partial class AppJsonSerializerContext : JsonSerializerContext
2828
{
2929

30-
}
30+
}

0 commit comments

Comments
 (0)