// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNet.FileProviders; namespace Microsoft.AspNet.Diagnostics { /// /// Options for the ErrorPageMiddleware. /// public class ErrorPageOptions { /// /// Create an instance with the default options settings. /// public ErrorPageOptions() { SourceCodeLineCount = 6; } /// /// Determines how many lines of code to include before and after the line of code /// present in an exception's stack frame. Only applies when symbols are available and /// source code referenced by the exception stack trace is present on the server. /// public int SourceCodeLineCount { get; set; } /// /// Provides files containing source code used to display contextual information of an exception. /// /// /// If null will use a . /// public IFileProvider FileProvider { get; set; } } }