-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHttpServerConfig.cs
More file actions
80 lines (69 loc) · 2.03 KB
/
HttpServerConfig.cs
File metadata and controls
80 lines (69 loc) · 2.03 KB
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
80
using System.Collections.Generic;
using System.Xml.Serialization;
using WebExpress.Core.Setting;
namespace WebExpress.Core.Config
{
/// <summary>
/// Class for reading the configuration file.
/// </summary>
[XmlRoot("config", IsNullable = false)]
public sealed class HttpServerConfig
{
/// <summary>
/// The configuration version.
/// </summary>
[XmlAttribute("version", DataType = "int")]
public int Version { get; set; }
/// <summary>
/// The endpoints of the web server.
/// </summary>
[XmlElement("endpoint")]
public List<EndpointConfig> Endpoints { get; set; }
/// <summary>
/// The uri of the web server.
/// </summary>
[XmlElement("uri")]
public string Uri { get; set; }
/// <summary>
/// The limitations.
/// </summary>
[XmlElement("limit")]
public LimitConfig Limit { get; set; }
/// <summary>
/// Root directory of packages.
/// </summary>
[XmlElement("packages")]
public string PackageBase { get; set; }
/// <summary>
/// Root directory of assets.
/// </summary>
[XmlElement("assets")]
public string AssetBase { get; set; }
/// <summary>
/// Root directory of the data.
/// </summary>
[XmlElement("data")]
public string DataBase { get; set; }
/// <summary>
/// The uri base path of the web server.
/// </summary>
[XmlElement("contextpath")]
public string ContextPath { get; set; }
/// <summary>
/// The culture
/// </summary>
[XmlElement("culture")]
public string Culture { get; set; }
/// <summary>
/// The log settings.
/// </summary>
[XmlElement("log")]
public SettingLogItem Log { get; set; }
/// <summary>
/// Constructor
/// </summary>
public HttpServerConfig()
{
}
}
}