Skip to main content
00:00/00:00
Lecture 20 of 86

Demo - Updating a Resource

Download Course (Free)

Course Content

0 / 86 completed
Section 1: Course Overview1 videos

Course Overview

2m
Section 2: Understanding Integration with an API Using HttpClient12 videos

Course Prerequisites

1m

Introducing the Demo Application

1m

Version Check

1m

Generating DTO Classes

2m

Strategies for Working with DTO Model Classes

3m

Frameworks and Tooling

2m

Coming Up

1m

Summary

1m

Tackling Integration with HttpClient

8m

Demo - Generating DTO Classes from Visual Studio

12m

Demo - Generating DTO Classes with NSWagStudio

12m

Demo - Introducing the Demo Application

8m
Section 3: Handling Common Types of Integration (CRUD)15 videos

Setting Request Headers

1m

Demo - Deleting a Resource

2m

Indicating Preference with the Relative Quality Parameter

1m

Inspecting Content Types

1m

Coming Up

1m

Demo - Indicating Preference with the Relative Quality Parameter

5m

Demo - Updating a Resource

3mNow Playing

Demo - Working With HttpRequestMessage Directly

4m

Summary

2m

Working with Headers and Content Negotiation

3m

Demo - Manipulating Request Headers

7m

Demo - Creating a Resource

6m

Demo - Using Shortcuts

3m

Demo - Providing Default Values for HttpClient and JsonSerializerOptions

12m

Demo - Getting a Resource

23m
Section 4: Integrating with a Partial Update Endpoint7 videos

Advanced Patch Scenarios

1m

Introducing Json Patch

3m

Demo - Partially Updating Resources with PatchAsync

3m

Coming Up

1m

System.Text.Json Versus Json.NET

2m

Summary

1m

Demo - Partially Updating Resources

11m
Section 5: Using HttpClientFactory for HttpClient Instance Management10 videos

Demo - Using Typed Instances with Type-scoped Configuration

2m

Using HttpClientFactory to Manage HttpClient Instances

2m

Demo - Extending Typed Instances with Interaction Methods

6m

Summary

1m

Demo - The Problem with Disposing HttpClient Instances

7m

Introducing HttpClientFactory

2m

The Problem with Disposing HttpClient Instances (Part 1)

2m

The Problem with Disposing HttpClient Instances (Part 2)

1m

Demo - Using Typed HttpClient Instances

5m

Demo - Configuring HttpClients

8m
Section 6: Improving Performance and Memory Use with Streams13 videos

Using Streams When Sending and Reading Data

1m

Using Streams When Reading Data

1m

On Streams, Memory Use, and Performance

1m

Using Streams When Sending Data

1m

Improving Memory Use and Performance with HttpCompletionMode

1m

Demo - Using Streams When Sending Data

6m

Advantages of Working with Streams

3m

Summary

1m

Demo - Improving Memory Use and Performance with HttpCompletionMode

3m

Demo - Combining Streams When Sending and Reading Data

4m

Demo - Using Streams When Reading Data

7m

Demo - Testing Performance Improvements When Getting Data

6m

Demo - Testing Performance Improvements When Posting Data

5m
Section 7: Integrating with an API that Supports Streaming3 videos

A Few Words on Supporting Streaming

3m

Demo - Integrating with a Streaming API Endpoint

6m

Summary

1m
Section 8: Supporting Compression4 videos

Summary

1m

Demo - Working with Compression When Sending Data

6m

A Few Words on Supporting Compression

1m

Demo - Working with Compression When Getting Data

8m
Section 9: Supporting Cancellation7 videos

Why Cancelling Requests Is Important

1m

CancellationTokenSource and CancellationToken

1m

Demo - Dealing with Timeouts

3m

Demo - Handling a Cancelled Request

2m

Summary

1m

Demo - Initialization of a CancellationTokenSource

3m

Demo - Cancelling a Request

5m
Section 10: Handling Faults and Errors, and Improving Resilience with Polly6 videos

Inspecting Status Codes

3m

Inspecting Response Messages

1m

Demo - Improving Reliability and Resilience with Polly

7m

Demo - Inspecting Status Codes

8m

Improving Reliability and Resilience with Polly

3m

Demo - Reading Out the Response Body When Streaming

12m
Section 11: Extending HttpClient with Custom HttpMessageHandlers8 videos

Delegating Handler Pattern

1m

Implementing a Retry Policy

1m

Additional Use Cases

1m

Demo - Implementing a Custom Handler to Enable Unit Testing

5m

Summary

1m

Unit Testing with HttpClient

1m

Demo - Using a Custom Handler in a Unit Test

4m

Demo - Implementing a Retry Policy with a Custom Delegating Handler

12m