示例#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(HttpContextBuilder builder)
 {
     return(new HttpContextReseter(builder.Context));
 }
示例#2
0
 internal HttpRequestBuilder(HttpContextBuilder builder, HttpRequestModel model)
 {
     _builder = builder;
     _model   = model;
 }