public ErrorReportViewModel(IEnumerable<Exception> exceptions) { Model = new ExceptionReportInfo { AppAssembly = Assembly.GetCallingAssembly() }; Model.SetExceptions(exceptions); CopyCommand = new CaptionCommand<string>(Resources.Copy, OnCopyCommand); SaveCommand = new CaptionCommand<string>(Resources.Save, OnSaveCommand); SubmitCommand = new CaptionCommand<string>(Resources.Send, OnSubmitCommand); }
public ErrorReportViewModel(IEnumerable <Exception> exceptions) { Model = new ExceptionReportInfo { AppAssembly = Assembly.GetCallingAssembly() }; Model.SetExceptions(exceptions); CopyCommand = new CaptionCommand <string>(Resources.Copy, OnCopyCommand); SaveCommand = new CaptionCommand <string>(Resources.Save, OnSaveCommand); SubmitCommand = new CaptionCommand <string>(Resources.Send, OnSubmitCommand); }
public ExceptionReportGenerator(ExceptionReportInfo reportInfo) { if (reportInfo == null) throw new ExceptionReportGeneratorException("reportInfo cannot be null"); _reportInfo = reportInfo; _reportInfo.ExceptionDate = DateTime.UtcNow; _reportInfo.UserName = Environment.UserName; _reportInfo.MachineName = Environment.MachineName; if (_reportInfo.AppAssembly == null) _reportInfo.AppAssembly = Assembly.GetEntryAssembly() ?? Assembly.GetCallingAssembly(); }
public ExceptionReportGenerator(ExceptionReportInfo reportInfo) { if (reportInfo == null) { throw new ExceptionReportGeneratorException("reportInfo cannot be null"); } _reportInfo = reportInfo; _reportInfo.ExceptionDate = DateTime.UtcNow; _reportInfo.UserName = Environment.UserName; _reportInfo.MachineName = Environment.MachineName; if (_reportInfo.AppAssembly == null) { _reportInfo.AppAssembly = Assembly.GetEntryAssembly() ?? Assembly.GetCallingAssembly(); } }
public ExceptionReportBuilder(ExceptionReportInfo reportInfo, IEnumerable<SysInfoResult> sysInfoResults) : this(reportInfo) { _sysInfoResults = sysInfoResults; }
public ExceptionReportBuilder(ExceptionReportInfo reportInfo) { _reportInfo = reportInfo; }
public ExceptionReportBuilder(ExceptionReportInfo reportInfo, IEnumerable <SysInfoResult> sysInfoResults) : this(reportInfo) { _sysInfoResults = sysInfoResults; }
public ExceptionReportBuilder(ExceptionReportInfo reportInfo) { _reportInfo = reportInfo; }