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)
69var context1 = hostingApplication1.CreateContext(features1); 70var context2 = hostingApplication2.CreateContext(features2); 161var context = hostingApplication.CreateContext(features); 207var context = hostingApplication.CreateContext(features); 226var context = hostingApplication.CreateContext(features); 253var context = hostingApplication.CreateContext(features); 312var context = hostingApplication.CreateContext(features); 372var context = hostingApplication.CreateContext(features); 427var context = hostingApplication.CreateContext(features); 472var context = hostingApplication.CreateContext(features); 521var context = hostingApplication.CreateContext(features); 646var context = hostingApplication.CreateContext(features); 670var context = hostingApplication.CreateContext(features); 692var context = hostingApplication.CreateContext(features); 1063var 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);