/// <summary>
 /// Adds the current request info to the error.
 /// </summary>
 /// <param name="builder">The error builder.</param>
 public static ErrorBuilder AddRequestInfo(this ErrorBuilder builder)
 {
     builder.Target.AddRequestInfo(builder.Client);
     return(builder);
 }
Exemple #2
0
 /// <summary>
 /// Adds the current request info as extended data to the error.
 /// </summary>
 /// <param name="builder">The error builder.</param>
 /// <param name="context">The http action context to gather information from.</param>
 public static ErrorBuilder AddHttpRequestInfo(this ErrorBuilder builder, HttpActionContext context)
 {
     builder.Target.AddHttpRequestInfo(context);
     return(builder);
 }
Exemple #3
0
 public static ErrorBuilder AddRequestInfo(this ErrorBuilder builder, NancyContext context)
 {
     builder.Target.AddRequestInfo(context);
     return(builder);
 }