コード例 #1
0
 private IValidatorReportItem ReportSuccess(string url, string domainName, int errors, bool isValid)
 {
     var result = new ValidatorReportItem();
     result.Url = url;
     result.DomainName = domainName;
     // TODO: Add elapsed time to the report.
     //result.FileName = fileName;
     result.Errors = errors;
     result.IsValid = isValid;
     return result;
 }
コード例 #2
0
 private IValidatorReportItem ReportFailure(string url, string domainName, string errorMessage)
 {
     var result = new ValidatorReportItem();
     result.Url = url;
     result.DomainName = domainName;
     result.ErrorMessage = errorMessage;
     result.IsValid = false;
     mContext.Announcer.Error(errorMessage);
     return result;
 }