Example #1
0
 /// <summary>
 /// Sets the instance built by the <paramref name="builder"/>
 /// </summary>
 /// <param name="builder">Builder of the <see cref="HttpContext"/> instance.</param>
 /// <returns>A scope object that resets the <see cref="HttpContext.Current"/> after is disposed.</returns>
 public static HttpContextReseter Set(HttpRequestBuilder builder)
 {
     return(new HttpContextReseter(builder.Context));
 }
 /// <summary>
 /// Sets the instance built by the <paramref name="builder"/>
 /// </summary>
 /// <param name="builder">Builder of the <see cref="HttpContext"/> instance.</param>
 /// <returns>A scope object that resets the <see cref="HttpContext.Current"/> after is disposed.</returns>
 public static HttpContextReseter Set(HttpRequestBuilder builder)
 {
     return new HttpContextReseter(builder.Context);
 }