Simplifies Configure()
This commit is contained in:
parent
fc15a61542
commit
4d64a854c2
7 changed files with 12 additions and 52 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue