Esempio n. 1
0
        public async Task <bool> DeleteProfileAsync()
        {
            Debug.WriteLine("Delete start!");

            return(await WorkAsync(
                       x => _worker.DeleteProfileAsync(x),
                       x => !Profiles.Contains(x)));
        }
Esempio n. 2
0
        public Task <bool> DeleteProfileAsync()
        {
            Debug.WriteLine("Delete start!");

            if (!TryGetTargetProfile(out ProfileItem targetProfile))
            {
                return(Task.FromResult(false));
            }

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