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