/// <summary> /// Adds the current request info to the error. /// </summary> /// <param name="error">The error model.</param> /// <param name="client">The client.</param> /// <param name="context">The http context to gather information from.</param> public static Error AddRequestInfo(this Error error, ExceptionlessClient client, HttpContext context) { if (context == null) return error; error.AddRequestInfo(client, context.ToWrapped()); return error; }
/// <summary> /// Adds the current request info to the event. /// </summary> /// <param name="ev">The event model.</param> /// <param name="client">The client.</param> /// <param name="context">The http context to gather information from.</param> public static Event AddRequestInfo(this Event ev, ExceptionlessClient client, HttpContext context) { if (context == null) return ev; ev.AddRequestInfo(client, context.ToWrapped()); return ev; }