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