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