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