-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathConfiguration.cs
More file actions
32 lines (30 loc) · 1.04 KB
/
Configuration.cs
File metadata and controls
32 lines (30 loc) · 1.04 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
using MLAPI.ServerList.Shared;
namespace MLAPI.ServerList.Server
{
public class Configuration
{
public ushort Port { get; set; } = 9423;
public string ListenAddress { get; set; } = "0.0.0.0";
public bool VerbosePrints = true;
public bool UseMongo { get; set; } = false;
public string MongoConnection { get; set; } = "mongodb://127.0.0.1:27017";
public int CollectionExpiryDelay { get; set; } = 20 * 60 * 1000;
public string MongoDatabase { get; set; } = "listserver";
public int ServerTimeout { get; set; } = 20_000;
public ContractDefinition[] ServerContract { get; set; } = new ContractDefinition[]
{
new ContractDefinition()
{
Name = "Name",
Required = false,
Type = ContractType.String
},
new ContractDefinition()
{
Name = "Players",
Required = true,
Type = ContractType.Int32
}
};
}
}