The next generation of the Teknik Services. Written in ASP.NET.
https://www.teknik.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
883 B
34 lines
883 B
using System; |
|
using System.Collections.Generic; |
|
using System.IO; |
|
using System.Linq; |
|
using System.Threading.Tasks; |
|
using Microsoft.AspNetCore; |
|
using Microsoft.AspNetCore.Hosting; |
|
using Microsoft.Extensions.Configuration; |
|
using Microsoft.Extensions.Logging; |
|
|
|
namespace Teknik |
|
{ |
|
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) |
|
.UseIISIntegration() |
|
.UseStartup<Startup>() |
|
.Build(); |
|
} |
|
} |
|
}
|
|
|