Пример #1
0
 public ErrorReport(FirebaseCredentials usr, Exception exception, string context)
 {
     HumanName  = usr.HumanName;
     Roles      = usr.Roles;
     Email      = usr.Email;
     Context    = context;
     ExeVersion = CurrentExe.ShortNameAndVersion();
     HumanTime  = DateTime.Now.ToString("d-MMM-yyyy h:mm tt");
     Details    = exception.Info(true, true)
                  .Split(new[] { "\r\n", "\r", "\n" },
                         StringSplitOptions.None).ToList();
 }