Ejemplo n.º 1
0
        }                               // Required by EF Core

        public DeadlineOptions(bool tracksTgt, bool tracksDate, bool isRecurr, DeadlineTarget tgt,
                               decimal warningTgtThres = 10, int warningDateThreshInDays = 10)
        {
            DeadlineId              = Guid.Empty; // Must be set by the owning Deadline
            TracksTarget            = tracksTgt;
            TracksDate              = tracksDate;
            IsRecurring             = isRecurr;
            Target                  = tgt;
            WarningTgtThresh        = warningTgtThres;
            WarningDateThreshInDays = warningDateThreshInDays;
            // Wait for Deadline to perform validation
        }
Ejemplo n.º 2
0
 public InvalidTargetException(string aircraftId, DeadlineTarget tgt)
     : base($"Attempted to point a Deadline to an invalid time meter. Aircraft: {aircraftId} Invalid target: {tgt}.")
 {
 }