3 writes to StatusCodeSelector
ExceptionHandlerSample (1)
StartupWithProblemDetails.cs (1)
32StatusCodeSelector = ex => ex is ConflictException
Microsoft.AspNetCore.Diagnostics.Tests (2)
ExceptionHandlerTest.cs (2)
672StatusCodeSelector = ex => ex is ApplicationException 711StatusCodeSelector = ex => ex is ApplicationException
3 references to StatusCodeSelector
Microsoft.AspNetCore.Diagnostics (3)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (2)
168context.Response.StatusCode = _options.StatusCodeSelector?.Invoke(edi.SourceException) ?? DefaultStatusCode; 205if (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.