示例#1
0
        public static Error AddRequestInfo(this Error error, NancyContext context)
        {
            if (context == null)
            {
                return(error);
            }

            error.RequestInfo = NancyRequestInfoCollector.Collect(context, ExceptionlessClient.Current);

            return(error);
        }
示例#2
0
 /// <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));
 }