blob: 68e9a300f687bf2840c3ed2d8483464b13c4b40f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
using Newtonsoft.Json;
namespace Spacebar.Cdn.Services;
public class SpacebarCdnWorkerConfiguration {
public SpacebarCdnWorkerConfiguration(IConfiguration config) {
config.GetRequiredSection("Spacebar").GetRequiredSection("Cdn").GetRequiredSection("Workers").Bind(this);
}
[JsonProperty("q8")]
public List<string> Q8Workers { get; set; } = [];
[JsonProperty("q16")]
public List<string> Q16Workers { get; set; } = [];
[JsonProperty("q16-hdri")]
public List<string> Q16HdriWorkers { get; set; } = [];
}
|