Ejemplo n.º 1
0
        private void StartAutoMarketLoaderThread()
        {
            // Declare the MarketLoader class to be threaded
            var marketLoader = new AutoMarketLoader(
                betfairAPI.GetSessionToken(),
                settings.GetAllMarketsConfiguration,
                settings.StrategyLoadPaterns);

            // Create the thread and start it
            var marketLoaderThread = new Thread(marketLoader.Start);

            marketLoaderThread.Start();

            // Now lets store the thread so that we can access it later
            LigniteEngineThreads.Add("MARKET_LOADER", marketLoaderThread);

            // Notify the user
            SendMessage(String.Format("MARKET_LOADER: Auto Market Loader Thread Started. {0}",
                                      LigniteEngineThreads.Count));
        }
Ejemplo n.º 2
0
        private void StartAutoMarketLoaderThread()
        {
            // Declare the MarketLoader class to be threaded
            var marketLoader = new AutoMarketLoader(
                betfairAPI.GetSessionToken(),
                settings.GetAllMarketsConfiguration,
                settings.StrategyLoadPaterns);

            // Create the thread and start it
            var marketLoaderThread = new Thread(marketLoader.Start);
            marketLoaderThread.Start();

            // Now lets store the thread so that we can access it later
            LigniteEngineThreads.Add("MARKET_LOADER", marketLoaderThread);

            // Notify the user
            SendMessage(String.Format("MARKET_LOADER: Auto Market Loader Thread Started. {0}",
                                      LigniteEngineThreads.Count));
        }