Renaming HttpContextFactory Create method

This commit is contained in:
John Luo 2015-10-23 21:58:22 -07:00
parent f931cb7c6d
commit 018f3d1815
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ namespace Microsoft.AspNet.Http
{
public interface IHttpContextFactory
{
HttpContext CreateHttpContext(IFeatureCollection featureCollection);
HttpContext Create(IFeatureCollection featureCollection);
void Dispose(HttpContext httpContext);
}
}

View File

@ -14,7 +14,7 @@ namespace Microsoft.AspNet.Http.Internal
_httpContextAccessor = httpContextAccessor;
}
public HttpContext CreateHttpContext(IFeatureCollection featureCollection)
public HttpContext Create(IFeatureCollection featureCollection)
{
var httpContext = new DefaultHttpContext(featureCollection);
_httpContextAccessor.HttpContext = httpContext;

View File

@ -16,7 +16,7 @@ namespace Microsoft.AspNet.Http.Internal
var contextFactory = new HttpContextFactory(accessor);
// Act
var context = contextFactory.CreateHttpContext(new FeatureCollection());
var context = contextFactory.Create(new FeatureCollection());
// Assert
Assert.True(ReferenceEquals(context, accessor.HttpContext));