4 instantiations of Context
Microsoft.AspNetCore.Hosting (2)
Internal\HostingApplication.cs (2)
58
hostContext = new
Context
();
65
hostContext = new
Context
();
Microsoft.AspNetCore.Hosting.Tests (2)
HostingApplicationTests.cs (2)
59
features.HostContext = new
Context
();
82
features.HostContext = new
Context
();
56 references to Context
Microsoft.AspNetCore.Hosting (14)
Internal\HostingApplication.cs (6)
13
internal sealed class HostingApplication : IHttpApplication<HostingApplication.
Context
>
50
public
Context
CreateContext(IFeatureCollection contextFeatures)
52
Context
? hostContext;
53
if (contextFeatures is IHostContextContainer<
Context
> container)
94
public Task ProcessRequestAsync(
Context
context)
100
public void DisposeContext(
Context
context, Exception? exception)
Internal\HostingApplicationDiagnostics.cs (6)
71
public void BeginRequest(HttpContext httpContext, HostingApplication.
Context
context)
155
public void RequestEnd(HttpContext httpContext, Exception? exception, HostingApplication.
Context
context)
260
public void ContextDisposed(HostingApplication.
Context
context)
269
private void LogRequestStarting(HostingApplication.
Context
context)
284
private void LogRequestFinished(HostingApplication.
Context
context, long startTimestamp, long currentTimestamp)
303
private void LogRequestUnhandled(HostingApplication.
Context
context)
Internal\HostingRequestFinishedLog.cs (2)
17
private readonly HostingApplication.
Context
_context;
52
public HostingRequestFinishedLog(HostingApplication.
Context
context, TimeSpan elapsed)
Microsoft.AspNetCore.Hosting.Tests (42)
HostingApplicationDiagnosticsTests.cs (25)
69
var
context1 = hostingApplication1.CreateContext(features1);
70
var
context2 = hostingApplication2.CreateContext(features2);
166
var
context = hostingApplication.CreateContext(features);
212
var
context = hostingApplication.CreateContext(features);
231
var
context = hostingApplication.CreateContext(features);
258
var
context = hostingApplication.CreateContext(features);
317
var
context = hostingApplication.CreateContext(features);
382
var
context = hostingApplication.CreateContext(features);
442
var
context = hostingApplication.CreateContext(features);
497
var
context = hostingApplication.CreateContext(features);
547
var
context = hostingApplication.CreateContext(features);
596
var
context = hostingApplication.CreateContext(features);
721
var
context = hostingApplication.CreateContext(features);
745
var
context = hostingApplication.CreateContext(features);
767
var
context = hostingApplication.CreateContext(features);
1248
var
context = hostingApplication.CreateContext(features);
1298
var
context = hostingApplication.CreateContext(features);
1338
var
context = hostingApplication.CreateContext(features);
1373
var
context = hostingApplication.CreateContext(features);
1414
var
context = hostingApplication.CreateContext(features);
1446
var
context = hostingApplication.CreateContext(features);
1489
var
context = hostingApplication.CreateContext(features);
1533
var
context = hostingApplication.CreateContext(features);
1582
var
context = hostingApplication.CreateContext(features);
1613
var
context = hostingApplication.CreateContext(features);
HostingApplicationTests.cs (9)
28
var
context = hostingApplication.CreateContext(httpContext.Features);
43
var
context = hostingApplication.CreateContext(httpContext.Features);
56
var features = new FeaturesWithContext<
Context
>(new DefaultHttpContext().Features);
62
var
context = hostingApplication.CreateContext(features);
79
var features = new FeaturesWithContext<
Context
>(new DefaultHttpContext().Features);
85
var
context = hostingApplication.CreateContext(features);
107
var
context = hostingApplication.CreateContext(httpContext.Features);
155
var
context = hostingApplication.CreateContext(httpContext.Features);
172
var
context = hostingApplication.CreateContext(httpContext.Features);
HostingMetricsTests.cs (8)
37
var
context1 = hostingApplication.CreateContext(httpContext.Features);
49
var
context2 = hostingApplication.CreateContext(httpContext.Features);
64
var
context3 = hostingApplication.CreateContext(httpContext.Features);
135
var
context1 = hostingApplication.CreateContext(httpContext.Features);
173
var
context = hostingApplication.CreateContext(httpContext.Features);
195
var
context = hostingApplication.CreateContext(httpContext.Features);
225
var
context = hostingApplication.CreateContext(httpContext.Features);
250
var
context = hostingApplication.CreateContext(httpContext.Features);