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
();
44 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)
70
public void BeginRequest(HttpContext httpContext, HostingApplication.
Context
context)
154
public void RequestEnd(HttpContext httpContext, Exception? exception, HostingApplication.
Context
context)
259
public void ContextDisposed(HostingApplication.
Context
context)
268
private void LogRequestStarting(HostingApplication.
Context
context)
283
private void LogRequestFinished(HostingApplication.
Context
context, long startTimestamp, long currentTimestamp)
302
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 (30)
HostingApplicationDiagnosticsTests.cs (16)
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);
381
var
context = hostingApplication.CreateContext(features);
441
var
context = hostingApplication.CreateContext(features);
496
var
context = hostingApplication.CreateContext(features);
541
var
context = hostingApplication.CreateContext(features);
590
var
context = hostingApplication.CreateContext(features);
715
var
context = hostingApplication.CreateContext(features);
739
var
context = hostingApplication.CreateContext(features);
761
var
context = hostingApplication.CreateContext(features);
1234
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);
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);