Esempio n. 1
0
        public IAtomixApp Start()
        {
            if (HasTerminal && HasAccount) // now client can connect only with authorization by wallet
            {
                Terminal.StartAsync().FireAndForget();
            }

            if (HasQuotesProvider)
            {
                QuotesProvider.Start();
            }

            if (HasOrderBooksProvider)
            {
                OrderBooksProvider.Start();
            }

            return(this);
        }
Esempio n. 2
0
        public IAtomixApp Stop()
        {
            if (HasTerminal)
            {
                Terminal.StopAsync().FireAndForget();
            }

            if (HasQuotesProvider)
            {
                QuotesProvider.Stop();
            }

            if (HasOrderBooksProvider)
            {
                OrderBooksProvider.Stop();
            }

            return(this);
        }
Esempio n. 3
0
        public IAtomexApp Stop()
        {
            if (HasTerminal)
            {
                StopTerminal();
            }

            if (HasQuotesProvider)
            {
                QuotesProvider.Stop();
            }

            if (HasOrderBooksProvider)
            {
                OrderBooksProvider.Stop();
            }

            CurrenciesUpdater?.Stop();

            return(this);
        }