1 implementation of TryWriteAsync
Microsoft.AspNetCore.Http.Extensions (1)
ProblemDetailsService.cs (1)
26
public async ValueTask<bool>
TryWriteAsync
(ProblemDetailsContext context)
7 references to TryWriteAsync
Microsoft.AspNetCore.Diagnostics (3)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
228
if (_problemDetailsService == null || !await _problemDetailsService.
TryWriteAsync
(new()
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
191
handled = await _problemDetailsService!.
TryWriteAsync
(new()
StatusCodePage\StatusCodePagesOptions.cs (1)
29
!await problemDetailsService.
TryWriteAsync
(new() { HttpContext = context.HttpContext, ProblemDetails = { Status = statusCode } }))
Microsoft.AspNetCore.Http.Results (2)
ProblemHttpResult.cs (1)
63
if (problemDetailsService is null || !await problemDetailsService.
TryWriteAsync
(new() { HttpContext = httpContext, ProblemDetails = ProblemDetails }))
ValidationProblem.cs (1)
63
if (problemDetailsService is null || !await problemDetailsService.
TryWriteAsync
(new() { HttpContext = httpContext, ProblemDetails = ProblemDetails }))
Microsoft.AspNetCore.Mvc.Core (2)
Formatters\TextOutputFormatter.cs (1)
135
return problemDetailsService.
TryWriteAsync
(new ()
Infrastructure\ObjectResultExecutor.cs (1)
106
return problemDetailsService.
TryWriteAsync
(new()