Skip to content

Commit

Permalink
Use CreateBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnygunawan committed Nov 26, 2023
1 parent bc33295 commit 2718f89
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions BotNet/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
using Microsoft.Extensions.Hosting;
using Orleans.Hosting;

WebApplicationBuilder builder = WebApplication.CreateSlimBuilder(args);

// HTTPS
builder.WebHost.UseKestrelHttpsConfiguration();
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);

// Configuration sources
builder.Configuration.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
Expand Down

0 comments on commit 2718f89

Please sign in to comment.