Загрузка страницы

How To Call An API in C# - Examples, Best Practices, Memory Management, and Pitfalls

It seems like everything has an API these days but have you ever wondered how to make use of an API in your application? It turns out that it isn't really that hard at all. In this video, I am going to show you how to easily load the data from two different APIs into an application. Along the way, I will show you how to avoid some memory issues and other best practices around talking to APIs Full courses: https://www.iamtimcorey.com/ Source Code: https://leadmagnets.app/?Resource=Cal... Patreon: / iamtimcorey Newsletter signup: https://signup.iamtimcorey.com/ 0:00 - Intro 1:00 - Demo application walk-through 4:09 - Setting up API calling: WebApi.Client and Newtonsoft.json NuGet references 6:02 - Setting up API calling: HttpClient 13:48 - Setting up API calling: API calls 19:14 - Setting up API calling: Reading and working with json data 28:18 - Loading image in WPF (form a website) 35:29 - Adding events in WPF application: wiring up action buttons 39:40 - Note on information Cashing 42:55 - Sunrise-sunset API: Nested json objects, API calls, WPF events, displaying information 51:56 - Loading other WPF forms from MainWindow 53:38 - Summary and concluding remarks

Видео How To Call An API in C# - Examples, Best Practices, Memory Management, and Pitfalls автора Programming C#
Показать
Информация
4 ч. 32 мин. назад
01:00:58
Похожие видео
C# Advanced Async - Getting progress reports, cancelling tasks, and moreC# Advanced Async - Getting progress reports, cancelling tasks, and more.net помойка / money / #27 Операции теперь на MudBlazor.net помойка / money / #27 Операции теперь на MudBlazor20-10-202420-10-2024Design Patterns_ Liskov Substitution Principle Explained Practically in C# (The L in SOL)Design Patterns_ Liskov Substitution Principle Explained Practically in C# (The L in SOL)Лучший в мире помощник для игры Морской Бой на PythonЛучший в мире помощник для игры Морской Бой на PythonDocker, Kubernetes - 019 - Manipulating Containers - Multi-Command ContainersDocker, Kubernetes - 019 - Manipulating Containers - Multi-Command ContainersDesign Patterns_ Dependency Inversion Principle Explained Practically in C# (The D in SOLID)Design Patterns_ Dependency Inversion Principle Explained Practically in C# (The D in SOLID)C# Logging with Serilog and Seq - Structured Logging Made EasyC# Logging with Serilog and Seq - Structured Logging Made Easy.net помойка / money / #24 Переключаемся на blazor.net помойка / money / #24 Переключаемся на blazorПлавание для новичков - как встать на ноги после заплыва, чтобы не захлебнутьсяПлавание для новичков - как встать на ноги после заплыва, чтобы не захлебнутьсяИгровая арифметика, часть 1.Игровая арифметика, часть 1.Горохов А.А. Интервенционные внутрисосудистые технологии применяемые в лечении ишемических катастрофГорохов А.А. Интервенционные внутрисосудистые технологии применяемые в лечении ишемических катастрофDocker, Kubernetes - 020 - Manipulating Containers - Executing Commands in Running ContainersDocker, Kubernetes - 020 - Manipulating Containers - Executing Commands in Running ContainersDelegates in C# - A practical demonstration, including Action and FuncDelegates in C# - A practical demonstration, including Action and FuncDesign Patterns_ Interface Segregation Principle Explained Practically in C# (The I in SOLID)Design Patterns_ Interface Segregation Principle Explained Practically in C# (The I in SOLID)Design Patterns_ Open Closed Principle Explained Practically in C# (The O in SOLID)Design Patterns_ Open Closed Principle Explained Practically in C# (The O in SOLID)Design Patterns_ Single Responsibility Principle Explained Practically in C# (The S in SDesign Patterns_ Single Responsibility Principle Explained Practically in C# (The S in SC# Async _ Await - Make your app more responsive and faster with asynchronous programmingC# Async _ Await - Make your app more responsive and faster with asynchronous programmingКГПТ Единый день открытых дверейКГПТ Единый день открытых дверейDocker, Kubernetes - 010 - Dive Into Docker - How's Docker Running on Your ComputerDocker, Kubernetes - 010 - Dive Into Docker - How's Docker Running on Your Computer
Яндекс.Метрика