Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

12345678910111213141516171819202122232425262728293031323334353637
  1. using System.IO;
  2. using Microsoft.AspNetCore;
  3. using Microsoft.AspNetCore.Builder;
  4. using Microsoft.AspNetCore.Hosting;
  5. using Microsoft.Extensions.Configuration;
  6. namespace Sample.Kafka.SqlServer
  7. {
  8. public class Program
  9. {
  10. //var config = new ConfigurationBuilder()
  11. // .AddCommandLine(args)
  12. // .AddEnvironmentVariables("ASPNETCORE_")
  13. // .Build();
  14. //var host = new WebHostBuilder()
  15. // .UseConfiguration(config)
  16. // .UseKestrel()
  17. // .UseContentRoot(Directory.GetCurrentDirectory())
  18. // .UseIISIntegration()
  19. // .UseStartup<Startup>()
  20. // .Build();
  21. //host.Run();
  22. public static void Main(string[] args)
  23. {
  24. BuildWebHost(args).Run();
  25. }
  26. public static IWebHost BuildWebHost(string[] args) =>
  27. WebHost.CreateDefaultBuilder(args)
  28. .UseStartup<Startup>()
  29. .Build();
  30. }
  31. }