Exemple #1
0
        private static void Main(string[] args)
        {
            //create the app config directory
            if (!System.IO.Directory.Exists(Utils.getAppDirectory)) {
                System.IO.Directory.CreateDirectory(Utils.getAppDirectory);
            }
            else {
                //try load existing settings
                Nodes.LoadFromFile();
                //Nodes.ScanLatestBlockHeight();
            }

            //start the Core
            var core = new WebServer.WebServer();
            core.Run();

            while (true)
                System.Threading.Thread.Sleep(50);
        }
Exemple #2
0
        private static void Main(string[] args)
        {
            //create the app config directory
            if (!System.IO.Directory.Exists(Utils.getAppDirectory))
            {
                System.IO.Directory.CreateDirectory(Utils.getAppDirectory);
            }
            else
            {
                //try load existing settings
                Nodes.LoadFromFile();
                //Nodes.ScanLatestBlockHeight();
            }

            //start the Core
            var core = new WebServer.WebServer();

            core.Run();

            while (true)
            {
                System.Threading.Thread.Sleep(50);
            }
        }