Example #1
0
 public ExceptionDto(ExceptionInfo exception)
 {
     Message        = exception.Message;
     Source         = exception.Source;
     StackTrace     = exception.StackTrace;
     InnerException = exception.InnerException == null ? null : new ExceptionDto(exception.InnerException);
 }
Example #2
0
 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);
 }