Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            var host = CreateHostBuilder(args).Build();

            using (var scope = host.Services.CreateScope())
            {
                var serviceProvider = scope.ServiceProvider;
                try
                {
                    Seed.CreateAdmin(serviceProvider).Wait();
                }
                catch (Exception ex)
                {
                }
            }

            host.Run();
        }