private async Task UpdateLoads() { IReadOnlyCollection <LogicalServerContract> servers = await _apiServers.GetLoadsAsync(); if (servers.Any()) { _serverManager.UpdateLoads(servers); ServerLoadsUpdated?.Invoke(this, EventArgs.Empty); } }
private async Task UpdateLoads() { var servers = await _apiServers.GetLoadsAsync(); if (!servers.Any()) { return; } _serverManager.UpdateLoads(servers); ServerLoadsUpdated?.Invoke(this, EventArgs.Empty); }