forked from BeyondDimension/SteamTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDILevel.cs
79 lines (67 loc) · 1.76 KB
/
DILevel.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
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
using System.Net.Http;
namespace System.Application
{
/// <summary>
/// DI服务级别
/// </summary>
[Flags]
public enum DILevel
{
/// <summary>
/// 最小
/// </summary>
Min = 0,
/// <summary>
/// 服务端 API + Repositories + Storage + UserManager + ModelValidator
/// </summary>
ServerApiClient = 2,
/// <summary>
/// 图形界面
/// </summary>
GUI = 4,
/// <summary>
/// <see cref="IHttpClientFactory"/> 服务
/// </summary>
HttpClientFactory = 8,
/// <summary>
/// Hosts 文件
/// </summary>
Hosts = 16,
/// <summary>
/// AppUpdate + 托盘图标(影响主窗口关闭与退出模式,仅在主进程中才会显示托盘)
/// </summary>
MainProcessRequired = 32,
/// <summary>
/// Steam 服务组
/// </summary>
Steam = 64,
/// <summary>
/// Http 代理
/// </summary>
HttpProxy = 128,
//256
// 512
//Placeholder = 1024,
//Placeholder1 = 2048,
//Placeholder2 = 4096,
//Placeholder3 = 8192,
//Placeholder4 = 16384,
//Placeholder5 = 32768,
//Placeholder6 = 65536,
//Placeholder7 = 131072,
//Placeholder8 = 262144,
#region Group
/// <summary>
/// 主进程所需级别组,仅用于指定DI等级,当前进程不一定为主进程
/// </summary>
MainProcess =
ServerApiClient |
GUI |
HttpClientFactory |
Hosts |
MainProcessRequired |
Steam |
HttpProxy,
#endregion
}
}