public ReportEventArgs(string sourceName, ReportCodes code, string format, params object[] args) { occurrenceUtcTime = DateTime.UtcNow; message = string.Format(format, args); source = sourceName; reportCode = code; }
public ReportEventArgs(string sourceName, ReportCodes code, string messageData) { occurrenceUtcTime = DateTime.UtcNow; message = messageData; source = sourceName; reportCode = code; }
public ReportEventArgs(string sourceName, Exception exp) { this.occurrenceUtcTime = DateTime.UtcNow; this.message = exp.Message; this.source = sourceName; this.exception = exp; this.reportCode = ReportCodes.ExceptionHandled; }