public ExceptionDto(ExceptionInfo exception) { Message = exception.Message; Source = exception.Source; StackTrace = exception.StackTrace; InnerException = exception.InnerException == null ? null : new ExceptionDto(exception.InnerException); }
public WardenCheckResultDto(WardenCheckResult result) { IsValid = result.IsValid; WatcherCheckResult = new WatcherCheckResultDto(result.WatcherCheckResult); StartedAt = result.StartedAt; CompletedAt = result.CompletedAt; ExecutionTime = result.ExecutionTime; Exception = result.Exception == null ? null : new ExceptionDto(result.Exception); }