Spotify.NET/SpotifyAPI.Web.Examples/Example.ASP/Program.cs
2024-02-10 11:42:55 +01:00

26 lines
653 B
C#

using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
namespace Example.ASP
{
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
})
.ConfigureAppConfiguration((httpContext, builder) =>
{
builder.AddUserSecrets<Program>();
});
}
}