mirror of
https://github.com/dotnetcore/AgileConfig.git
synced 2026-10-25 09:43:01 +08:00
20 lines
620 B
C#
20 lines
620 B
C#
using AgileConfig.Server.Common;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AgileConfig.Server.Apisite
|
|
{
|
|
public class Appsettings
|
|
{
|
|
/// 是否演示模式
|
|
/// </summary>
|
|
public static bool IsPreviewMode => "true".Equals(Global.Config["preview_mode"], StringComparison.CurrentCultureIgnoreCase);
|
|
/// <summary>
|
|
/// 是否控制台模式
|
|
/// </summary>
|
|
public static bool IsAdminConsoleMode => "true".Equals(Global.Config["adminConsole"], StringComparison.CurrentCultureIgnoreCase);
|
|
}
|
|
}
|