Version Check
Course Content
0 / 86 completedCourse Overview
Course Prerequisites
Introducing the Demo Application
Version Check
Generating DTO Classes
Strategies for Working with DTO Model Classes
Frameworks and Tooling
Coming Up
Summary
Tackling Integration with HttpClient
Demo - Generating DTO Classes from Visual Studio
Demo - Generating DTO Classes with NSWagStudio
Demo - Introducing the Demo Application
Setting Request Headers
Demo - Deleting a Resource
Indicating Preference with the Relative Quality Parameter
Inspecting Content Types
Coming Up
Demo - Indicating Preference with the Relative Quality Parameter
Demo - Updating a Resource
Demo - Working With HttpRequestMessage Directly
Summary
Working with Headers and Content Negotiation
Demo - Manipulating Request Headers
Demo - Creating a Resource
Demo - Using Shortcuts
Demo - Providing Default Values for HttpClient and JsonSerializerOptions
Demo - Getting a Resource
Advanced Patch Scenarios
Introducing Json Patch
Demo - Partially Updating Resources with PatchAsync
Coming Up
System.Text.Json Versus Json.NET
Summary
Demo - Partially Updating Resources
Demo - Using Typed Instances with Type-scoped Configuration
Using HttpClientFactory to Manage HttpClient Instances
Demo - Extending Typed Instances with Interaction Methods
Summary
Demo - The Problem with Disposing HttpClient Instances
Introducing HttpClientFactory
The Problem with Disposing HttpClient Instances (Part 1)
The Problem with Disposing HttpClient Instances (Part 2)
Demo - Using Typed HttpClient Instances
Demo - Configuring HttpClients
Using Streams When Sending and Reading Data
Using Streams When Reading Data
On Streams, Memory Use, and Performance
Using Streams When Sending Data
Improving Memory Use and Performance with HttpCompletionMode
Demo - Using Streams When Sending Data
Advantages of Working with Streams
Summary
Demo - Improving Memory Use and Performance with HttpCompletionMode
Demo - Combining Streams When Sending and Reading Data
Demo - Using Streams When Reading Data
Demo - Testing Performance Improvements When Getting Data
Demo - Testing Performance Improvements When Posting Data
A Few Words on Supporting Streaming
Demo - Integrating with a Streaming API Endpoint
Summary
Summary
Demo - Working with Compression When Sending Data
A Few Words on Supporting Compression
Demo - Working with Compression When Getting Data
Why Cancelling Requests Is Important
CancellationTokenSource and CancellationToken
Demo - Dealing with Timeouts
Demo - Handling a Cancelled Request
Summary
Demo - Initialization of a CancellationTokenSource
Demo - Cancelling a Request
Inspecting Status Codes
Inspecting Response Messages
Demo - Improving Reliability and Resilience with Polly
Demo - Inspecting Status Codes
Improving Reliability and Resilience with Polly
Demo - Reading Out the Response Body When Streaming
Delegating Handler Pattern
Implementing a Retry Policy
Additional Use Cases
Demo - Implementing a Custom Handler to Enable Unit Testing
Summary
Unit Testing with HttpClient
Demo - Using a Custom Handler in a Unit Test
Demo - Implementing a Retry Policy with a Custom Delegating Handler