Program.cs 858 B

123456789101112131415161718192021222324252627
  1. using Microsoft.AspNetCore.Hosting;
  2. using Microsoft.Extensions.Hosting;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.IO;
  6. using System.Linq;
  7. using System.Threading.Tasks;
  8. namespace XYY.gRpc.Customer
  9. {
  10. public class Program
  11. {
  12. public static void Main(string[] args)
  13. {
  14. CreateHostBuilder(args).Build().Run();
  15. }
  16. // Additional configuration is required to successfully run gRPC on macOS.
  17. // For instructions on how to configure Kestrel and gRPC clients on macOS, visit https://go.microsoft.com/fwlink/?linkid=2099682
  18. public static IHostBuilder CreateHostBuilder(string[] args) =>
  19. Host.CreateDefaultBuilder(args)
  20. .ConfigureWebHostDefaults(webBuilder =>
  21. {
  22. webBuilder.UseStartup<Startup>();
  23. });
  24. }
  25. }