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)
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);
377
var
context = hostingApplication.CreateContext(features);
432
var
context = hostingApplication.CreateContext(features);
477
var
context = hostingApplication.CreateContext(features);
526
var
context = hostingApplication.CreateContext(features);
651
var
context = hostingApplication.CreateContext(features);
675
var
context = hostingApplication.CreateContext(features);
697
var
context = hostingApplication.CreateContext(features);
1068
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);