Ejemplo n.º 1
0
        private static void RegistDropMemoryTask()
        {
            if (Settings.Opti_GC_Collect_Interval <= 0) 
                return;

            service.Sington.RegistContinuTasks(() =>
            {
                ITask task = new AtNet.DevFw.Framework.TaskBox.Task();
                task.TaskName = "gc_collect";
                return task;
            }, (client, task, message) =>
            {

            },Settings.Opti_GC_Collect_Interval);   //2小时
        }
Ejemplo n.º 2
0
        private static void RegistDropMemoryTask()
        {
            if (Settings.Opti_GC_Collect_Interval <= 0)
            {
                return;
            }

            service.Sington.RegistContinuTasks(() =>
            {
                ITask task    = new AtNet.DevFw.Framework.TaskBox.Task();
                task.TaskName = "gc_collect";
                return(task);
            }, (client, task, message) =>
            {
            }, Settings.Opti_GC_Collect_Interval);   //2小时
        }