public override string ToString() { string specString = string.Empty; specString += string.Format("{0,-26}{1}{2}", "Filename:", FileNameParsed, Environment.NewLine); specString += string.Format("{0,-26}{1:#####0}{2}", "PackageLength:", PackageLength, Environment.NewLine); specString += string.Format("{0,-26}{1}{2}", "PackageName:", PackageName, Environment.NewLine); specString += string.Format("{0,-26}{1}{2}", "PackageHash:", PackageHash, Environment.NewLine); specString += string.Format("{0,-26}{1}{2}", "AnyErrors:", HasErrors.ToString(), Environment.NewLine); if (HasErrors) { specString += string.Format("{0,-26}{1:##0}{2}", "Parse Errors:", Procedures.CountParseErrors, Environment.NewLine); specString += string.Format("{0,-26}{1:##0}{2}", "NotSupported Errors:", Procedures.CountNotSupported, Environment.NewLine); } specString += string.Format("{0,-26}{1:##0}/{2:##0}{3}", "Procedures (Valid/Total):", Procedures.Count - Procedures.CountParseErrors - Procedures.CountNotSupported, Procedures.Count, Environment.NewLine); specString += Procedures.ToString(); return(specString); }
void OnHasErrors(string message) { Error = message; HasErrors?.Invoke(this, message); }
public PlanExecutionEvents OnHasErrors(bool hasErrors, string statusText = "") { HasErrors?.Invoke(this, new PlanHasErrorsUpdatedEventArgs(backupPlan, hasErrors, statusText)); return(this); }