diff --git a/TCPMaid/Maids/ServerMaid.cs b/TCPMaid/Maids/ServerMaid.cs index 5566edc..67c2df8 100644 --- a/TCPMaid/Maids/ServerMaid.cs +++ b/TCPMaid/Maids/ServerMaid.cs @@ -84,19 +84,19 @@ public void Stop() { /// public async Task BroadcastAsync(Message Message, Channel? Exclude = null, Predicate? ExcludeWhere = null) { // Send message to each client - await EachClientAsync(async Client => await Client.SendAsync(Message), Exclude, ExcludeWhere); + await ForEachClientAsync(async Client => await Client.SendAsync(Message), Exclude, ExcludeWhere); } /// /// Disconnects every connected client. /// public async Task DisconnectAllAsync(string Reason = DisconnectReason.None, Channel? Exclude = null, Predicate? ExcludeWhere = null) { // Disconnect each client - await EachClientAsync(async Client => await Client.DisconnectAsync(Reason), Exclude, ExcludeWhere); + await ForEachClientAsync(async Client => await Client.DisconnectAsync(Reason), Exclude, ExcludeWhere); } /// /// Runs an asynchronous action for every connected client. /// - public async Task EachClientAsync(Func Action, Channel? Exclude, Predicate? ExcludeWhere) { + public async Task ForEachClientAsync(Func Action, Channel? Exclude, Predicate? ExcludeWhere) { // Start action for each client List Tasks = []; foreach (Channel Client in Clients) {