This repository was archived by the owner on Mar 19, 2019. It is now read-only.
File tree 1 file changed +2
-5
lines changed
test/Microsoft.AspNetCore.Server.WebListener.FunctionalTests
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 18
18
using System ;
19
19
using Microsoft . AspNetCore . Hosting . Server ;
20
20
using Microsoft . AspNetCore . Http ;
21
- using Microsoft . AspNetCore . Http . Features ;
22
- using Microsoft . AspNetCore . Http . Internal ;
23
21
using Microsoft . AspNetCore . Server . Features ;
24
22
using Microsoft . Net . Http . Server ;
25
23
26
24
namespace Microsoft . AspNetCore . Server . WebListener
27
25
{
28
26
internal static class Utilities
29
27
{
30
- // When tests projects are run in parallel, overlapping port ranges can cause a race condition when looking for free
31
- // ports during dynamic port allocation. To avoid this, make sure the port range here is different from the range in
28
+ // When tests projects are run in parallel, overlapping port ranges can cause a race condition when looking for free
29
+ // ports during dynamic port allocation. To avoid this, make sure the port range here is different from the range in
32
30
// Microsoft.Net.Http.Server.
33
31
private const int BasePort = 5001 ;
34
32
private const int MaxPort = 8000 ;
35
33
private static int NextPort = BasePort ;
36
34
private static object PortLock = new object ( ) ;
37
- private static IHttpContextFactory Factory = new HttpContextFactory ( new HttpContextAccessor ( ) ) ;
38
35
39
36
internal static IServer CreateHttpServer ( out string baseAddress , RequestDelegate app )
40
37
{
You can’t perform that action at this time.
0 commit comments