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.
 
 
 

33 rivejä
853 B

  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.Builder;
  7. using Microsoft.AspNetCore.Hosting;
  8. using Microsoft.Extensions.Configuration;
  9. namespace Sample.RabbitMQ.MySql
  10. {
  11. public class Program
  12. {
  13. public static void Main(string[] args)
  14. {
  15. var config = new ConfigurationBuilder()
  16. .AddCommandLine(args)
  17. .AddEnvironmentVariables("ASPNETCORE_")
  18. .Build();
  19. var host = new WebHostBuilder()
  20. .UseConfiguration(config)
  21. .UseKestrel()
  22. .UseContentRoot(Directory.GetCurrentDirectory())
  23. .UseIISIntegration()
  24. .UseStartup<Startup>()
  25. .Build();
  26. host.Run();
  27. }
  28. }
  29. }