Beispiel #1
0
        /// <summary>
        /// The program's Main method; entry point for the application.
        /// The program is not designed to accept arguments. Secrets from
        /// the dotnet cli user store can be passed in as environment variables.
        /// </summary>
        public static async Task Main(string[] args)
        {
            IWebHost webhost = CreateWebHostBuilder(args).Build();

            await webhost.CreateOrMigrateDatabase();

            await webhost.RunAsync();
        }