Ejemplo n.º 1
0
        public async Task <bool> ConnectNetworkAsync()
        {
            Debug.WriteLine("Connect start!");

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

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

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