Commit Graph

11 Commits (2a58a2fc7a4013e86e8eb6be846c9bb8aca5bbf0)

Author SHA1 Message Date
Luke Latham 47be37a3b2
Cross-link and enhance scoping in a console app (#21964) 2021-04-06 05:04:16 -05:00
Scott Addie b10d421903
Update master branch references to main and update repo org. (#21737)
* Update the aspnet/AspNetCore.Docs repo references

* Update master branch names to main
2021-03-10 10:13:00 -06:00
Rick Anderson 0ac6a03a6f
Serpent5 scoped di/ra (#21275)
* Explain scoped DI in HttpClient handlers

* Include relevant sample code in the topic

* Explain scoped DI in HttpClient handlers by serpent5

* Explain scoped DI in HttpClient handlers by serpent5

* clean up

* clean up

* clean up

* clean up

* clean up

* clean up

* Apply suggestions from code review

Co-authored-by: Kirk Larkin <serpent5@pm.me>

* Update aspnetcore/fundamentals/http-requests/samples/3.x/HttpRequestsSample/Startup.cs

Co-authored-by: Kirk Larkin <serpent5@pm.me>

Co-authored-by: Kirk Larkin <serpent5@pm.me>
2021-01-26 10:32:40 +10:00
Kirk Larkin ce87a9b905
Demonstrate GET, POST, PUT, and DELETE with HttpClient (#18650)
* dotnet new webapp

* Cleanup scaffolding and move to CDNs/inline CSS

* Add basic Web API for TodoItems

* RP examples for hitting the API with CRUD

* Use a Typed Client for deduplication

* Use the incoming URL to determine HttpClient.BaseAddress

* Add an explanation to the topic

* Update aspnetcore/fundamentals/http-requests.md

Co-authored-by: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com>

Co-authored-by: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com>
2020-06-11 10:10:41 -10:00
Rick Anderson 5ebd26bdfa
Header propagation middleware PR of PR (#16717)
* Header prop PR of PR

* Header prop PR of PR

* Header prop PR of PR

* Header prop PR of PR

* Header prop PR of PR

* Header prop PR of PR
2020-01-27 14:53:19 -08:00
Luke Latham 4a16dc236d
3.1 Sample Updates (#16170) 2019-12-12 17:31:22 -06:00
Rick Anderson 60453c5568
Text.json 3.0/ra (#15382)
* Use System.Text.Json for 3.0 HTTP Requests topic.

* Update to 3.0 code.

* C#8 goodness.

* Note that Json.NET + ReadAsAsync<T> can be seen in previous versions.

* Update Startup.cs

* IHttpClientFactory to Text.Json

* IHttpClientFactory to Text.Json

* clean up

* clean up

* clean up

* Apply suggestions from code review

Co-Authored-By: Kirk Larkin <6025110+serpent5@users.noreply.github.com>

* clean up
2019-10-30 14:27:28 -10:00
Nikita Potapenko dc8f9b7bea Update packages (#14574)
Use GA version
2019-09-25 07:58:43 -10:00
Luke Latham b93ab83fb6 Pascal case placeholder names in log strings (#14508)
* Pascal case placeholder names in log strings

* Updates
2019-09-23 14:11:50 -10:00
Luke Latham 1e99d7ef1a
Use IHttpClientFactory in a console app (#13434) 2019-08-01 11:04:25 -05:00
Scott Addie fcfa1c60d3
Address removal of WebApi.Client from shared framework (#12371)
* Address removal of WebApi.Client from shared framework

* Update IHttpClientFactory sample code

* IHttpClientFactory doc updates
2019-05-10 20:22:28 -05:00