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.

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