2 instantiations of Context
Microsoft.AspNetCore.Hosting (2)
Internal\HostingApplication.cs (2)
51
hostContext = new
Context
();
58
hostContext = new
Context
();
41 references to Context
Microsoft.AspNetCore.Hosting (14)
Internal\HostingApplication.cs (6)
13
internal sealed class HostingApplication : IHttpApplication<HostingApplication.
Context
>
43
public
Context
CreateContext(IFeatureCollection contextFeatures)
45
Context
? hostContext;
46
if (contextFeatures is IHostContextContainer<
Context
> container)
87
public Task ProcessRequestAsync(
Context
context)
93
public void DisposeContext(
Context
context, Exception? exception)
Internal\HostingApplicationDiagnostics.cs (6)
54
public void BeginRequest(HttpContext httpContext, HostingApplication.
Context
context)
138
public void RequestEnd(HttpContext httpContext, Exception? exception, HostingApplication.
Context
context)
243
public void ContextDisposed(HostingApplication.
Context
context)
252
private void LogRequestStarting(HostingApplication.
Context
context)
267
private void LogRequestFinished(HostingApplication.
Context
context, long startTimestamp, long currentTimestamp)
286
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 (27)
HostingApplicationDiagnosticsTests.cs (15)
68
var
context1 = hostingApplication1.CreateContext(features1);
69
var
context2 = hostingApplication2.CreateContext(features2);
165
var
context = hostingApplication.CreateContext(features);
211
var
context = hostingApplication.CreateContext(features);
230
var
context = hostingApplication.CreateContext(features);
257
var
context = hostingApplication.CreateContext(features);
316
var
context = hostingApplication.CreateContext(features);
376
var
context = hostingApplication.CreateContext(features);
431
var
context = hostingApplication.CreateContext(features);
476
var
context = hostingApplication.CreateContext(features);
525
var
context = hostingApplication.CreateContext(features);
650
var
context = hostingApplication.CreateContext(features);
674
var
context = hostingApplication.CreateContext(features);
696
var
context = hostingApplication.CreateContext(features);
1067
var
context = hostingApplication.CreateContext(features);
HostingApplicationTests.cs (7)
28
var
context = hostingApplication.CreateContext(httpContext.Features);
43
var
context = hostingApplication.CreateContext(httpContext.Features);
62
var
context = hostingApplication.CreateContext(features);
85
var
context = hostingApplication.CreateContext(features);
107
var
context = hostingApplication.CreateContext(httpContext.Features);
154
var
context = hostingApplication.CreateContext(httpContext.Features);
170
var
context = hostingApplication.CreateContext(httpContext.Features);
HostingMetricsTests.cs (5)
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);