Пример #1
0
        private static void Stop()
        {
            lock (output_sync_) {
                output_obj_ = null;

                UnregisterWatchEvent();
            }
        }
Пример #2
0
        private static void Restart()
        {
            Stop();
            lock (output_sync_) {
                output_obj_ = LoadOutputModule(ConfigManager.System.AutoPacketSave.SaveTimming.Value);

                RegisterWatchEvent();
            }
        }
Пример #3
0
        private static void OutputTask(AutoLogObject module, Queue <PacketObject[]> packets_list)
        {
            if (module == null)
            {
                return;
            }
            if (packets_list == null)
            {
                return;
            }

            while (packets_list.Count > 0)
            {
                module.Output(packets_list.Dequeue());
            }
        }