Пример #1
0
        static void Main(string[] args)
        {
            CancellationTokenSource cancellationTokenSource = new CancellationTokenSource();

            XmlConfigurator.Configure();

            _log.Info("===== NODE STARTED =====");

            ConfigureUnhandledExceptions();

            ClientBootstrapper nodeBootstrapper = new ClientBootstrapper(cancellationTokenSource.Token);

            nodeBootstrapper.Run(new Dictionary <string, string> {
                { "secretKey", "1F0B7DBB567EFC99060EC69DD60130B4364E36B7A88248DD234285B3860F63C3" }
            });
            //nodeBootstrapper.Run(new Dictionary<string, string> { { "secretKey", CryptoHelper.GetRandomSeed().ToHexString() } });

            string command = null;

            do
            {
                command = System.Console.ReadLine();
            } while (command?.ToLower() != "exit");

            cancellationTokenSource.Cancel();
        }