Program.cs 826 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. using HaBook.IES.IdentityServer.EFCore.Seeds;
  7. using Microsoft.AspNetCore;
  8. using Microsoft.AspNetCore.Hosting;
  9. using Microsoft.Extensions.Configuration;
  10. using Microsoft.Extensions.Logging;
  11. namespace HaBook.IES.IdentityServer.EFCore
  12. {
  13. public class Program
  14. {
  15. public static void Main(string[] args)
  16. {
  17. Console.Title = "HaBook.IES.IdentityServer.EFCore";
  18. IWebHost host = CreateWebHostBuilder(args).Build();
  19. SeedData.EnsureSeedData(host.Services);
  20. host.Run();
  21. }
  22. public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
  23. WebHost.CreateDefaultBuilder(args)
  24. .UseStartup<Startup>();
  25. }
  26. }