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