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