1 write to HttpContext
Microsoft.AspNetCore.Diagnostics.Abstractions (1)
ErrorContext.cs (1)
20HttpContext = httpContext ?? throw new ArgumentNullException(nameof(httpContext));
14 references to HttpContext
Microsoft.AspNetCore.Diagnostics (3)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (3)
86var httpContext = errorContext.HttpContext; 201var httpContext = errorContext.HttpContext; 221var httpContext = errorContext.HttpContext;
Microsoft.AspNetCore.Diagnostics.Abstractions (2)
ErrorContext.cs (2)
14/// Initializes the ErrorContext with the specified <see cref="HttpContext"/> and <see cref="Exception"/>. 25/// The <see cref="HttpContext"/>.
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (5)
DatabaseDeveloperPageExceptionFilter.cs (5)
59var registeredContexts = errorContext.HttpContext.RequestServices.GetServices<DbContextOptions>() 69var details = await errorContext.HttpContext.GetContextDetailsAsync(registeredContext, _logger); 81Model = new DatabaseErrorPageModel(dbException, contextDetails, _options, errorContext.HttpContext.Request.PathBase) 84await page.ExecuteAsync(errorContext.HttpContext); 95var response = errorContext.HttpContext.Response;
Microsoft.AspNetCore.Diagnostics.Tests (4)
DeveloperExceptionPageMiddlewareTest.cs (4)
653return context.HttpContext.Response.WriteAsync(context.Exception.Message); 661return context.HttpContext.Response.WriteAsync(context.Exception.ToString()); 669return context.HttpContext.Response.WriteAsync("An error occurred"); 677return next(new ErrorContext(context.HttpContext, new FormatException("Bad format exception!")));