Beispiel #1
0
        private Task RemoveContactAsync()
        {
            return(ExecuteAsync(async() =>
            {
                var selectedContact = SelectedContact;

                if (selectedContact != null &&
                    selectedContact.Contact != null)
                {
                    await _clientChannel.DeleteResourceAsync(
                        LimeUri.Parse(UriTemplates.CONTACT.NamedFormat(new { contactIdentity = SelectedContact.Contact })),
                        _receiveTimeout.ToCancellationToken());

                    await GetContactsAsync();
                }
            }));
        }