|
|
|
@ -94,8 +94,8 @@ namespace Apewer.Web |
|
|
|
public bool WithDuration { get; set; } = false; |
|
|
|
|
|
|
|
/// <summary>允许响应中包含 Exception 对象的属性。</summary>
|
|
|
|
/// <remarks>默认值:允许。</remarks>
|
|
|
|
public bool WithException { get; set; } = true; |
|
|
|
/// <remarks>默认值:不允许。</remarks>
|
|
|
|
public bool WithException { get; set; } = false; |
|
|
|
|
|
|
|
/// <summary>允许输出 Application 列表时包含模块名称。</summary>
|
|
|
|
/// <remarks>默认值:不包含。</remarks>
|
|
|
|
@ -131,7 +131,6 @@ namespace Apewer.Web |
|
|
|
/// <summary>创建默认选项。</summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// 在 Debug 模式中默认设置以下选项
|
|
|
|
/// <br />JsonIndent = TRUE
|
|
|
|
/// <br />WithException = TRUE
|
|
|
|
/// <br />WithDuration = TRUE
|
|
|
|
/// <br />WithParameters = TRUE
|
|
|
|
@ -144,7 +143,6 @@ namespace Apewer.Web |
|
|
|
[Conditional("DEBUG")] |
|
|
|
void Debug() |
|
|
|
{ |
|
|
|
JsonIndent = true; |
|
|
|
WithException = true; |
|
|
|
WithDuration = true; |
|
|
|
WithParameters = true; |
|
|
|
|