Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 // for interval commands
 public PurgeCommand(PurgeCommandScope scope, PurgeCommandType type, int dayInterval, int hourInterval, int minInterval)
 {
     this.scope        = scope;
     this.type         = type;
     this.dayInterval  = dayInterval;
     this.hourInterval = hourInterval;
     this.minInterval  = minInterval;
 }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
0
 // for megs commands
 public PurgeCommand(PurgeCommandScope scope, PurgeCommandType type, int megLimit)
 {
     this.scope    = scope;
     this.type     = type;
     this.megLimit = megLimit;
 }
Ejemplo n.º 6
0
        public const long TICKS_PER_MIN  = 600000000;           // 60 secs per min * 10000000000 ns per sec / 100 ns per tick;

        #endregion
        #region Constructors
        public PurgeCommand()
        {
            this.type   = PurgeCommandType.EMPTY;
            this.active = true;
            this.scope  = PurgeCommandScope.NONE;
        }