public static CryptoTickerBotCore CreateAndStart([NotNull] CancellationTokenSource cts)
        {
            var bot = new CryptoTickerBotCore( );

            bot.Start(cts);
            return(bot);
        }
Example #2
0
        public static void Main( )
        {
            AppDomain.CurrentDomain.UnhandledException += (sender, args) =>
                                                          Logger.Error(args);

            LogManager.Configuration.Variables["DataSource"] = Data.Settings.Instance.DataSource;

            Console.Title = "Crypto Ticker Bot";
            Logger.Info("Started Crypto Ticker Bot");

            CryptoTickerBotCore.CreateAndStart( );

            Console.ReadLine( );
        }