Exemplo n.º 1
0
        public async Task <bool> DisconnectNetworkAsync()
        {
            Debug.WriteLine("Disconnect start!");

            return(await WorkAsync(
                       x => _worker.DisconnectNetworkAsync(x, _workingTimeoutDuration),
                       x => Profiles.Contains(x) && !x.IsConnected));
        }
Exemplo n.º 2
0
        public Task <bool> DisconnectNetworkAsync(ProfileItem targetProfile, bool isManual = true)
        {
            Debug.WriteLine("Disconnect start!");

            if (isManual)
            {
                EngagesPriority.Value = false;
            }

            return(WorkAsync(targetProfile, x => _worker.DisconnectNetworkAsync(x, _connectTimeout)));
        }