public static Error AddRequestInfo(this Error error, NancyContext context) { if (context == null) { return(error); } error.RequestInfo = NancyRequestInfoCollector.Collect(context, ExceptionlessClient.Current); return(error); }
/// <summary> /// Adds the current request info. /// </summary> /// <param name="context">The nancy context to gather information from.</param> /// <param name="config">The config.</param> public static RequestInfo GetRequestInfo(this NancyContext context, ExceptionlessConfiguration config) { return(NancyRequestInfoCollector.Collect(context, config.DataExclusions)); }