3 writes to StatusCodeSelector
ExceptionHandlerSample (1)
StartupWithProblemDetails.cs (1)
32
StatusCodeSelector
= ex => ex is ConflictException
Microsoft.AspNetCore.Diagnostics.Tests (2)
ExceptionHandlerTest.cs (2)
672
StatusCodeSelector
= ex => ex is ApplicationException
711
StatusCodeSelector
= ex => ex is ApplicationException
3 references to StatusCodeSelector
Microsoft.AspNetCore.Diagnostics (3)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (2)
168
context.Response.StatusCode = _options.
StatusCodeSelector
?.Invoke(edi.SourceException) ?? DefaultStatusCode;
205
if (context.Response.HasStarted || handled || _options.
StatusCodeSelector
!= null || context.Response.StatusCode != StatusCodes.Status404NotFound || _options.AllowStatusCode404Response)
ExceptionHandler\ExceptionHandlerOptions.cs (1)
46
/// If <see cref="
StatusCodeSelector
"/> is <c>null</c>, the default exception status code 500 is used.