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