diff --git a/src/BenchmarksApps/Grpc/BasicGrpc/Program.cs b/src/BenchmarksApps/Grpc/BasicGrpc/Program.cs index e61552e53..c3d7ae3ff 100644 --- a/src/BenchmarksApps/Grpc/BasicGrpc/Program.cs +++ b/src/BenchmarksApps/Grpc/BasicGrpc/Program.cs @@ -1,18 +1,9 @@ -using System.Text; using BasicGrpc.Services; -using Microsoft.AspNetCore.Server.Kestrel.Core; var builder = WebApplication.CreateSlimBuilder(args); -// No logging for benchmark scenario, template has AddConsole(); +builder.Logging.ClearProviders(); builder.Services.AddGrpc(); -builder.WebHost.ConfigureKestrel(options => -{ - options.ConfigureEndpointDefaults(listenOptions => - { - listenOptions.Protocols = HttpProtocols.Http2; - }); -}); var app = builder.Build(); diff --git a/src/BenchmarksApps/Grpc/BasicGrpc/Properties/launchSettings.json b/src/BenchmarksApps/Grpc/BasicGrpc/Properties/launchSettings.json new file mode 100644 index 000000000..754a65a9b --- /dev/null +++ b/src/BenchmarksApps/Grpc/BasicGrpc/Properties/launchSettings.json @@ -0,0 +1,13 @@ +{ + "profiles": { + "BasicGrpc": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": false, + "applicationUrl": "http://localhost:55262", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} \ No newline at end of file diff --git a/src/BenchmarksApps/Grpc/BasicGrpc/appsettings.Development.json b/src/BenchmarksApps/Grpc/BasicGrpc/appsettings.Development.json new file mode 100644 index 000000000..1b2d3bafd --- /dev/null +++ b/src/BenchmarksApps/Grpc/BasicGrpc/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} \ No newline at end of file diff --git a/src/BenchmarksApps/Grpc/BasicGrpc/appsettings.json b/src/BenchmarksApps/Grpc/BasicGrpc/appsettings.json new file mode 100644 index 000000000..801d9d230 --- /dev/null +++ b/src/BenchmarksApps/Grpc/BasicGrpc/appsettings.json @@ -0,0 +1,14 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*", + "Kestrel": { + "EndpointDefaults": { + "Protocols": "Http2" + } + } +} \ No newline at end of file