Exemplo n.º 1
0
        public void Stop()
        {
            foreach (var subscription in ActiveSubscriptions.Values)
            {
                subscription.Dispose();
            }
            ActiveSubscriptions.Clear();

            WampChannel.Close();
        }
Exemplo n.º 2
0
        public void Stop()
        {
            try {
                foreach (var subscription in ActiveSubscriptions.Values)
                {
                    subscription.Dispose();
                }
                ActiveSubscriptions.Clear();

                WampChannel.Close();
            }
            catch (Exception e) {
                Console.WriteLine("Live Stop: " + e.Message);
                PoloniexBot.CLI.Manager.PrintError(e.Message);
            }
        }
Exemplo n.º 3
0
        public void Stop()
        {
            Console.WriteLine("STOP CALLED");

            try {
                foreach (var subscription in ActiveSubscriptions.Values)
                {
                    subscription.Dispose();
                }
                ActiveSubscriptions.Clear();

                PoloniexBot.Trading.Manager.Stop();
                PoloniexBot.Trading.Manager.ClearAllPairs();

                WampChannel.Close();
            }
            catch (Exception ex) {
                Console.WriteLine("WAMP EXCEPTION (Stop): " + ex.Message);
            }
        }