Пример #1
0
        public Task <NetState> SuggestAsync()
        {
            Refresh();
            NetState state = Status switch
            {
                NetStatus.Lan => NetState.Auth4,
                NetStatus.Wlan => SsidStateMap.ContainsKey(Ssid) ? SsidStateMap[Ssid] : NetState.Unknown,
                _ => NetState.Unknown
            };

            return(state != NetState.Unknown ? Task.FromResult(state) : NetPingStatusHelper.GetSuggestion());
        }
    }
Пример #2
0
 public Task <NetState> SuggestAsync() => NetPingStatusHelper.GetSuggestion();