The next generation of the Teknik Services. Written in ASP.NET.
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.

37 lines
1.1 KiB

using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using System.IO;
using Teknik.Configuration;
using Teknik.Logging;
namespace Teknik.IdentityServer
public class Program
public static void Main(string[] args)
public static IWebHost BuildWebHost(string[] args)
var config = new ConfigurationBuilder()
.AddJsonFile("appsettings.json", optional: true)
return WebHost.CreateDefaultBuilder(args)
.ConfigureLogging((hostingContext, logging) =>
string baseDir = hostingContext.HostingEnvironment.ContentRootPath;
string dataDir = Path.Combine(baseDir, "App_Data");
logging.AddProvider(new LoggerProvider(Config.Load(dataDir)));