2 instantiations of StatusCodePagesOptions
Microsoft.AspNetCore.Diagnostics (2)
StatusCodePage\StatusCodePagesExtensions.cs (2)
58
return app.UseStatusCodePages(new
StatusCodePagesOptions
156
Options.Create(new
StatusCodePagesOptions
() { HandleAsync = CreateHandler(pathFormat, queryFormat, newNext) })).Invoke;
8 references to StatusCodePagesOptions
Microsoft.AspNetCore.Diagnostics (8)
StatusCodePage\StatusCodeContext.cs (4)
18
/// <param name="options">The configured <see cref="
StatusCodePagesOptions
"/>.</param>
20
public StatusCodeContext(HttpContext context,
StatusCodePagesOptions
options, RequestDelegate next)
33
/// Gets the configured <see cref="
StatusCodePagesOptions
"/>.
35
public
StatusCodePagesOptions
Options { get; private set; }
StatusCodePage\StatusCodePagesExtensions.cs (1)
25
public static IApplicationBuilder UseStatusCodePages(this IApplicationBuilder app,
StatusCodePagesOptions
options)
StatusCodePage\StatusCodePagesMiddleware.cs (2)
17
private readonly
StatusCodePagesOptions
_options;
24
public StatusCodePagesMiddleware(RequestDelegate next, IOptions<
StatusCodePagesOptions
> options)
StatusCodePage\StatusCodePagesOptions.cs (1)
18
/// Creates a default <see cref="
StatusCodePagesOptions
"/> which produces a plaintext response