Spotify.NET/SpotifyAPI.Web.Examples/Example.ASP/Program.cs

26 lines
653 B
C#
Raw Normal View History

2020-05-22 11:23:25 +01:00
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>();
2020-05-29 09:33:49 +01:00
})
.ConfigureAppConfiguration((httpContext, builder) =>
{
builder.AddUserSecrets<Program>();
2020-05-22 11:23:25 +01:00
});
}
}