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.

Program.cs 883B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. using Microsoft.AspNetCore;
  7. using Microsoft.AspNetCore.Hosting;
  8. using Microsoft.Extensions.Configuration;
  9. using Microsoft.Extensions.Logging;
  10. namespace Teknik
  11. {
  12. public class Program
  13. {
  14. public static void Main(string[] args)
  15. {
  16. BuildWebHost(args).Run();
  17. }
  18. public static IWebHost BuildWebHost(string[] args)
  19. {
  20. var config = new ConfigurationBuilder()
  21. .AddJsonFile("appsettings.json", optional: true)
  22. .AddCommandLine(args)
  23. .Build();
  24. return WebHost.CreateDefaultBuilder(args)
  25. .UseConfiguration(config)
  26. .UseIISIntegration()
  27. .UseStartup<Startup>()
  28. .Build();
  29. }
  30. }
  31. }