Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultHttpContext"/> class with provided features.
 /// </summary>
 /// <param name="features">Initial set of features for the <see cref="DefaultHttpContext"/>.</param>
 public DefaultHttpContext(IFeatureCollection features)
 {
     _features.Initalize(features);
     _request  = new DefaultHttpRequest(this);
     _response = new DefaultHttpResponse(this);
 }
Пример #2
0
 public DefaultHttpContext(IFeatureCollection features)
 {
     _features = new FeatureReferences <FeatureInterfaces>(features);
     _request  = new DefaultHttpRequest(this);
     _response = new DefaultHttpResponse(this);
 }