コード例 #1
0
        public static PurgeCommand ConstructIntervalCommand(PurgeCommandScope scope, UserTrashBin trashBin, int dayInterval, int hourInterval, int minInterval)
        {
            PurgeCommand cmd = new PurgeCommand(scope, PurgeCommandType.INTERVAL, dayInterval, hourInterval, minInterval);

            cmd.AddUserTrash(trashBin);

            return(cmd);
        }
コード例 #2
0
        public static PurgeCommand ConstructAgeCommand(PurgeCommandScope scope, ArrayList trashBins, int dayInterval, int hourInterval, int minInterval)
        {
            PurgeCommand cmd = new PurgeCommand(scope, PurgeCommandType.AGE, dayInterval, hourInterval, minInterval);

            foreach (UserTrashBin trashBin in trashBins)
            {
                cmd.AddUserTrash(trashBin);
            }

            return(cmd);
        }
コード例 #3
0
        public static PurgeCommand ConstructMegsCommand(PurgeCommandScope scope, ArrayList trashBins, int megLimit)
        {
            PurgeCommand cmd = new PurgeCommand(scope, PurgeCommandType.MEGS, megLimit);

            foreach (UserTrashBin trashBin in trashBins)
            {
                cmd.AddUserTrash(trashBin);
            }

            return(cmd);
        }