This repository was archived by the owner on Nov 20, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Microsoft.AspNet.Http.Abstractions
test/Microsoft.AspNet.Http.Tests Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ namespace Microsoft.AspNet.Http
7
7
{
8
8
public interface IHttpContextFactory
9
9
{
10
- HttpContext CreateHttpContext ( IFeatureCollection featureCollection ) ;
10
+ HttpContext Create ( IFeatureCollection featureCollection ) ;
11
11
void Dispose ( HttpContext httpContext ) ;
12
12
}
13
13
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public HttpContextFactory(IHttpContextAccessor httpContextAccessor)
14
14
_httpContextAccessor = httpContextAccessor ;
15
15
}
16
16
17
- public HttpContext CreateHttpContext ( IFeatureCollection featureCollection )
17
+ public HttpContext Create ( IFeatureCollection featureCollection )
18
18
{
19
19
var httpContext = new DefaultHttpContext ( featureCollection ) ;
20
20
_httpContextAccessor . HttpContext = httpContext ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public void CreateHttpContextSetsHttpContextAccessor()
16
16
var contextFactory = new HttpContextFactory ( accessor ) ;
17
17
18
18
// Act
19
- var context = contextFactory . CreateHttpContext ( new FeatureCollection ( ) ) ;
19
+ var context = contextFactory . Create ( new FeatureCollection ( ) ) ;
20
20
21
21
// Assert
22
22
Assert . True ( ReferenceEquals ( context , accessor . HttpContext ) ) ;
You can’t perform that action at this time.
0 commit comments