1 implementation of IProblemDetailsService
Microsoft.AspNetCore.Http.Extensions (1)
ProblemDetailsService.cs (1)
8internal sealed class ProblemDetailsService : IProblemDetailsService
27 references to IProblemDetailsService
Microsoft.AspNetCore.Diagnostics (13)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (2)
43private readonly IProblemDetailsService? _problemDetailsService; 54IProblemDetailsService? problemDetailsService = null)
ExceptionHandler\ExceptionHandledType.cs (1)
20/// Exception was handled by an <see cref="Http.IProblemDetailsService"/> instance registered in the DI container.
ExceptionHandler\ExceptionHandlerExtensions.cs (2)
109var problemDetailsService = app.ApplicationServices.GetService<IProblemDetailsService>();
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (2)
31private readonly IProblemDetailsService? _problemDetailsService; 40IProblemDetailsService? problemDetailsService = null)
StatusCodePage\StatusCodePagesExtensions.cs (2)
24/// <see cref="Microsoft.AspNetCore.Mvc.ProblemDetails"/> response using <see cref="IProblemDetailsService"/> 41/// when an <see cref="IProblemDetailsService"/> is available, attempts to generate a
StatusCodePage\StatusCodePagesOptions.cs (4)
19/// <see cref="Microsoft.AspNetCore.Mvc.ProblemDetails"/> response using <see cref="IProblemDetailsService"/>, and falls back 28var problemDetailsService = context.HttpContext.RequestServices.GetService<IProblemDetailsService>(); 59/// using <see cref="IProblemDetailsService"/> and falls back to a plain text response that includes the
Microsoft.AspNetCore.Http.Extensions (4)
ProblemDetailsOptions.cs (1)
7/// Options for controlling the behavior of <see cref="IProblemDetailsService.WriteAsync(ProblemDetailsContext)"/>
ProblemDetailsServiceCollectionExtensions.cs (1)
41services.TryAddSingleton<IProblemDetailsService, ProblemDetailsService>();
RequestDelegateFactory.cs (2)
1426var problemDetailsService = httpContext.RequestServices.GetService<IProblemDetailsService>();
Microsoft.AspNetCore.Http.Results (4)
ProblemHttpResult.cs (2)
58var problemDetailsService = httpContext.RequestServices.GetService<IProblemDetailsService>();
ValidationProblem.cs (2)
58var problemDetailsService = httpContext.RequestServices.GetService<IProblemDetailsService>();
Microsoft.AspNetCore.Identity (2)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (2)
1432var problemDetailsService = httpContext.RequestServices.GetService<IProblemDetailsService>();
Microsoft.AspNetCore.Mvc.Core (2)
Formatters\TextOutputFormatter.cs (1)
133if (context.HttpContext.RequestServices.GetService<IProblemDetailsService>() is { } problemDetailsService)
Infrastructure\ObjectResultExecutor.cs (1)
105if (context.HttpContext.RequestServices.GetService<IProblemDetailsService>() is { } problemDetailsService)
Microsoft.AspNetCore.Routing (2)
ValidationEndpointFilterFactory.cs (2)
105var problemDetailsService = context.HttpContext.RequestServices.GetService<IProblemDetailsService>();