Ejemplo n.º 1
0
        public static int Main(string[] args)
        {
            AppDomain.CurrentDomain.ProcessExit += MainDispose;

            try
            {
                Directory.CreateDirectory(DataPath);

                DbClient = DatabaseInit.ConnectDatabase(DbPath).GetAwaiter().GetResult();
            }
            catch (System.Exception exc)
            {
                Console.WriteLine(exc.Message);
                return(1);
            }

            CreateHostBuilder(args).Build().Run();

            return(0);
        }