示例#1
0
        private async Task UpdateLoads()
        {
            IReadOnlyCollection <LogicalServerContract> servers = await _apiServers.GetLoadsAsync();

            if (servers.Any())
            {
                _serverManager.UpdateLoads(servers);
                ServerLoadsUpdated?.Invoke(this, EventArgs.Empty);
            }
        }
示例#2
0
        private async Task UpdateLoads()
        {
            var servers = await _apiServers.GetLoadsAsync();

            if (!servers.Any())
            {
                return;
            }

            _serverManager.UpdateLoads(servers);
            ServerLoadsUpdated?.Invoke(this, EventArgs.Empty);
        }