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

            await Task.Delay(100);

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

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

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

            m_LocalNode = node;
            if (m_Cleaner == null)
            {
                m_Cleaner = new TransactionCleaner(node);
            }

            await Task.Delay(50);

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

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

            return("");
        }