12345678910111213141516171819202122232425262728 |
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Threading.Tasks;
- using HaBook.IES.IdentityServer.EFCore.Seeds;
- using Microsoft.AspNetCore;
- using Microsoft.AspNetCore.Hosting;
- using Microsoft.Extensions.Configuration;
- using Microsoft.Extensions.Logging;
- namespace HaBook.IES.IdentityServer.EFCore
- {
- public class Program
- {
- public static void Main(string[] args)
- {
- Console.Title = "HaBook.IES.IdentityServer.EFCore";
- IWebHost host = CreateWebHostBuilder(args).Build();
- SeedData.EnsureSeedData(host.Services);
- host.Run();
- }
- public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
- WebHost.CreateDefaultBuilder(args)
- .UseStartup<Startup>();
- }
- }
|