ningshuxia
2022-12-01 ad494f13d2ddf31f142cf7fb908b3a6e90395a1a
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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;
            }
        }
 
 
 
    }
}