Simplifies Configure()

This commit is contained in:
Kamron Batman 2026-07-25 10:52:06 -07:00
parent fc15a61542
commit 4d64a854c2
No known key found for this signature in database
GPG key ID: 7D81DF26D9A5D94A
7 changed files with 12 additions and 52 deletions

View file

@ -54,7 +54,7 @@ public static class BanChannel
}
}
reporter.Configure();
reporter.Register();
var updated = new IBanReporter[_reporters.Length + 1];
Array.Copy(_reporters, updated, _reporters.Length);

View file

@ -31,7 +31,7 @@ public interface IBanReporter
string Name { get; }
/// <summary>Reads configuration. No network or file I/O here.</summary>
void Configure();
void Register();
/// <summary>Starts background delivery. The token is cancelled on shutdown.</summary>
void Start(CancellationToken token);