about summary refs log tree commit diff
path: root/MatrixContentFilter/MatrixContentFilterConfiguration.cs
blob: 57537f0a2c983778c416feb437b5d2493d672fbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using Microsoft.Extensions.Configuration;

namespace MatrixContentFilter;

public class MatrixContentFilterConfiguration {
    public MatrixContentFilterConfiguration(IConfiguration config) => config.GetRequiredSection("MatrixContentFilter").Bind(this);

    public List<string> Admins { get; set; } = new();
    public ConcurrencyLimitsConfiguration ConcurrencyLimits { get; set; } = new();
    
    public string AppMode { get; set; } = "bot";
    public string AsyncQueueImplementation { get; set; } = "lifo";
    
    public class ConcurrencyLimitsConfiguration {
        public int Redactions { get; set; } = 1;
        public int LogMessages { get; set; } = 1;
    }
}