Esempio n. 1
0
        public async Task <string> Unload(IServerNode node)
        {
            //System.Diagnostics.Debugger.Break();

            await Task.Delay(100);

            if (m_LocalCacheUpdater != null)
            {
                await m_LocalCacheUpdater.Stop();

                m_LocalCacheUpdater = null;
            }
            await Task.Delay(100);

            node.GetLogger().Info(this.GetType().Name + " service stopped");

            return("");
        }
Esempio n. 2
0
        public async Task <string> Load(IServerNode node)
        {
            //System.Diagnostics.Debugger.Break();

            if (m_LocalCacheUpdater == null)
            {
                m_LocalCacheUpdater = new MerchantDataCache(node);
            }

            await Task.Delay(50);

            if (m_LocalCacheUpdater != null)
            {
                await m_LocalCacheUpdater.Start();
            }
            await Task.Delay(50);

            node.GetLogger().Info(this.GetType().Name + " service started");

            return("");
        }