Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 018f3d1

Browse files
committed
Renaming HttpContextFactory Create method
1 parent f931cb7 commit 018f3d1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Microsoft.AspNet.Http.Abstractions/IHttpContextFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Microsoft.AspNet.Http
77
{
88
public interface IHttpContextFactory
99
{
10-
HttpContext CreateHttpContext(IFeatureCollection featureCollection);
10+
HttpContext Create(IFeatureCollection featureCollection);
1111
void Dispose(HttpContext httpContext);
1212
}
1313
}

src/Microsoft.AspNet.Http/HttpContextFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public HttpContextFactory(IHttpContextAccessor httpContextAccessor)
1414
_httpContextAccessor = httpContextAccessor;
1515
}
1616

17-
public HttpContext CreateHttpContext(IFeatureCollection featureCollection)
17+
public HttpContext Create(IFeatureCollection featureCollection)
1818
{
1919
var httpContext = new DefaultHttpContext(featureCollection);
2020
_httpContextAccessor.HttpContext = httpContext;

test/Microsoft.AspNet.Http.Tests/HttpContextFactoryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public void CreateHttpContextSetsHttpContextAccessor()
1616
var contextFactory = new HttpContextFactory(accessor);
1717

1818
// Act
19-
var context = contextFactory.CreateHttpContext(new FeatureCollection());
19+
var context = contextFactory.Create(new FeatureCollection());
2020

2121
// Assert
2222
Assert.True(ReferenceEquals(context, accessor.HttpContext));

0 commit comments

Comments
 (0)