-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathTraceConfiguration.cs
31 lines (29 loc) · 1.24 KB
/
TraceConfiguration.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
namespace Nancy
{
/// <summary>
/// Configuration for tracing.
/// </summary>
public class TraceConfiguration
{
/// <summary>
/// Initializes a new instance of the <see cref="TraceConfiguration"/> class.
/// </summary>
/// <param name="enabled">Determines if tracing should be enabled.</param>
/// <param name="displayErrorTraces">Determines if traces should be displayed in error messages.</param>
public TraceConfiguration(bool enabled, bool displayErrorTraces)
{
this.Enabled = enabled;
this.DisplayErrorTraces = displayErrorTraces;
}
/// <summary>
/// Gets a value indicating whether or not to enable request tracing.
/// </summary>
/// <value><see langword="true"/> if tracing should be enabled, otherwise <see langword="false"/>.</value>
public bool Enabled { get; private set; }
/// <summary>
/// Gets a value indicating whether or not to display traces in error messages.
/// </summary>
/// <value><see langword="true"/> traces should be displayed in error messages, otherwise <see langword="false"/>.</value>
public bool DisplayErrorTraces { get; private set; }
}
}