Exemple #1
0
 protected WardenCheckResult(bool isValid, WatcherCheckResult watcherCheckResult,
                             DateTime startedAt, DateTime completedAt, ExceptionInfo exception = null)
 {
     IsValid            = isValid;
     WatcherCheckResult = watcherCheckResult;
     StartedAt          = startedAt;
     CompletedAt        = completedAt;
     Exception          = exception;
 }
Exemple #2
0
 public static WardenCheckResult Invalid(WatcherCheckResult watcherCheckResult,
                                         DateTime startedAt, DateTime completedAt, ExceptionInfo exception)
 => new WardenCheckResult(false, watcherCheckResult, startedAt, completedAt, exception);
Exemple #3
0
 public static WardenCheckResult Valid(WatcherCheckResult watcherCheckResult,
                                       DateTime startedAt, DateTime completedAt)
 => new WardenCheckResult(true, watcherCheckResult, startedAt, completedAt);