Beispiel #1
0
        public async Task GetState()
        {
            var state = await _vpnServiceManager.ConnectionState();

            var protocol = VpnProtocol.Auto;

            if (state != null)
            {
                _lastServer = _lastServerCandidates.ServerByEntryIp(state.EntryIp);
                State       = new VpnState(state.Status, _lastServer);
                protocol    = state.Protocol;
            }

            RaiseVpnStateChanged(new VpnStateChangedEventArgs(State, VpnError.None, false, protocol));
        }
Beispiel #2
0
 public async Task<VpnState> ConnectionState()
 {
     return await _decorated.ConnectionState();
 }