Exemple #1
0
 public DataLifeTime(string dateField, TimeInterval interval, UInt16 value, DataLifeAction action, string storage = null)
 {
     DateField = dateField;
     Interval  = interval;
     Value     = value;
     Action    = action;
     Storage   = storage;
 }
Exemple #2
0
        public static string GetActionText(DataLifeAction action, string storage = null)
        {
            switch (action)
            {
            case DataLifeAction.MoveToDisk: return($"TO DISK '{storage}'");

            case DataLifeAction.MoveToVolume: return($"TO VOLUME '{storage}'");

            default: return("DELETE");
            }
        }
Exemple #3
0
 public static string GetText(string dateField, TimeInterval interval, UInt16 value, DataLifeAction action, string storage = null)
 => $"TTL {dateField} + {interval.ToString().ToUpper()} {value} {GetActionText(action, storage)}";