/// <summary> /// Update the state of the wrapper to reflect the current network configuration and state /// </summary> /// <returns></returns> public async Task Refresh() { await Task.WhenAll( Clients.Refresh(), InfrastructureDevices.Refresh(), WlanGroups.Refresh(), UserGroups.Refresh(), PortForwards.Refresh() ); InferConvergedTopology(); }
/// <summary> /// Refresh network state /// </summary> /// <returns></returns> public async Task Refresh() { if (!API.IsAuthenticated) { await API.Authenticate(); } await Task.WhenAll(new Task[] { Clients.Refresh(), Devices.Refresh(), PortForwards.Refresh(), WirelessNetworks.Refresh(), WirelessNetworkGroups.Refresh(), UserGroups.Refresh() }); Devices.ConvergeTree(Clients); }