コード例 #1
0
ファイル: Program.cs プロジェクト: quickpanda/Lean
        public static void Exit()
        {
            //Delete the message from the job queue:
            leanEngineSystemHandlers.JobQueue.AcknowledgeJob(job);
            Log.Trace("Engine.Main(): Packet removed from queue: " + job.AlgorithmId);

            // clean up resources
            leanEngineSystemHandlers.DisposeSafely();
            leanEngineAlgorithmHandlers.DisposeSafely();
            Log.LogHandler.DisposeSafely();

            Log.Trace("Program.Main(): Exiting Lean...");
            Environment.Exit(0);
        }