mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
28 lines
711 B
C#
28 lines
711 B
C#
using Microsoft.AspNetCore;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
namespace Teknik.IdentityServer
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
BuildWebHost(args).Run();
|
|
}
|
|
|
|
public static IWebHost BuildWebHost(string[] args)
|
|
{
|
|
var config = new ConfigurationBuilder()
|
|
.AddJsonFile("appsettings.json", optional: true)
|
|
.AddCommandLine(args)
|
|
.Build();
|
|
|
|
return WebHost.CreateDefaultBuilder(args)
|
|
.UseConfiguration(config)
|
|
.UseStartup<Startup>()
|
|
.Build();
|
|
}
|
|
}
|
|
}
|