Наследование: System.Web.UI.Page
Пример #1
0
        private async void TagDoubleClicked(object sender, MouseButtonEventArgs e)
        {
            var     preItem = VisualUpwardSearch(e.OriginalSource as DependencyObject);
            AutoTag tag     = preItem.DataContext as AutoTag;

            await LoadContainer(tag?.Item);
        }
Пример #2
0
        public async Task <bool> UpdateAutoTagAsync(string id, AutoTag body, CancellationToken cancellationToken = default)
        {
            var response = await GetAutoTagsUrl()
                           .AppendPathSegment(id)
                           .PutJsonAsync(body, cancellationToken)
                           .ConfigureAwait(false);

            return(response.IsSuccessStatusCode);
        }
Пример #3
0
        public async Task <EntityShortRepresentation> CreateAutoTagAsync(AutoTag body, CancellationToken cancellationToken = default)
        {
            var response = await GetAutoTagsUrl()
                           .PostJsonAsync(body, cancellationToken)
                           .ReceiveJsonWithErrorChecking <EntityShortRepresentation>()
                           .ConfigureAwait(false);

            return(response);
        }