using IStation.Untity;
|
using System;
|
using System.Collections.Generic;
|
using System.Configuration;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace IStation.Service
|
{
|
/// <summary>
|
///
|
/// </summary>
|
internal class ConfigHelper
|
{
|
|
/// <summary>
|
/// 保持缓存时间 分钟
|
/// </summary>
|
public static int KeepCacheTime
|
{
|
get
|
{
|
var time = Settings.MemoryCache.KeepTime;
|
return time;
|
}
|
}
|
|
/// <summary>
|
/// 随机缓存时间 秒数
|
/// </summary>
|
public static int RandomCacheTime
|
{
|
get
|
{
|
var time = Settings.MemoryCache.RandomTime;
|
return RandomHelper.Random(0, time);
|
}
|
}
|
|
/// <summary>
|
/// 默认登录密码
|
/// </summary>
|
public static string DefaultLoginPwd
|
{
|
get
|
{
|
var defaultLoginPwd = Settings.User.DefaultLoginPwd;
|
return defaultLoginPwd;
|
}
|
}
|
|
|
|
}
|
}
|