コード例 #1
0
        public async Task <string> Unload(IServerNode node)
        {
            //System.Diagnostics.Debugger.Break();

            await Task.Delay(100);

            if (m_LocalCacheUpdater != null)
            {
                m_LocalCacheUpdater.Stop();
                m_LocalCacheUpdater = null;
            }
            await Task.Delay(100);

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

            return("");
        }
コード例 #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)
            {
                m_LocalCacheUpdater.Start();
            }
            await Task.Delay(50);

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

            return("");
        }