-
Notifications
You must be signed in to change notification settings - Fork 25.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Starting work on HttpClientFactory documentation #5483
Merged
scottaddie
merged 44 commits into
dotnet:master
from
stevejgordon:stevejgordon/httpclientfactory
May 2, 2018
Merged
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
1b897ac
Starting work on HttpClientFactory documentation (WIP)
stevejgordon 37a56fb
Fixing some minor issues
stevejgordon 0523d99
Updating per initial feedback
stevejgordon ca0cc90
Adding refit example
stevejgordon 7026d16
Further feedback adjustments
stevejgordon ed1b3dd
Adding delegating handler middleware section
stevejgordon bfed490
Minor typo
stevejgordon 812cf28
Initial Polly example
stevejgordon 86e239d
Updating with latest feedback
stevejgordon ec14f81
Pass to remove you/your + improve readability and clarity
stevejgordon d527081
Additional tidy-up
stevejgordon ad34a62
Edits for latest feedback
stevejgordon 37a5deb
UE pass
scottaddie b5aa44b
Snippet fixes
stevejgordon 135a6e1
Add ms.custom metadata
scottaddie b62b134
Adding WIP sample project
stevejgordon c71f194
Minor edits to Fundamentals index page
scottaddie a7e1c51
Relocate master TOC link
scottaddie 590150d
Feedback and sample update to 2.1 preview
stevejgordon 567afbb
Fixing some missed HttpClientFactory items
stevejgordon 5d18655
Initial snippets from sample
stevejgordon 2251cb9
Fixing a copy/paste mistake
stevejgordon c8b6438
fixing code link
stevejgordon aaf26d3
Remove gerund from title
scottaddie c9d0daf
Fix wording in the description metadata value
scottaddie 7825296
Minor verbiage tweaks
scottaddie b077c4b
WIP
stevejgordon 44be1a5
Working on Polly sample and documentation
stevejgordon f95bd56
Using code from sample in docs
stevejgordon d231feb
UE pass
scottaddie 957f760
Convert usage H2 headings to H3
scottaddie f715142
Adding initial logging information
stevejgordon 05e139f
Verbiage tweaks
scottaddie af9c32f
Updating to 2.1 preview 2
stevejgordon aaf3240
Removing HTTPS redirection since launchSettings does not default to c…
stevejgordon fdf6d7c
Add monikerRange metadata for 2.1+
scottaddie c7d9e6d
Major sample and doc content update
stevejgordon b2c7d60
Adding section about configuring HttpMessageHandler
stevejgordon 699e07d
Updating with feedback from Ryan
stevejgordon e4bd7f0
Feedback and updates
stevejgordon d7a5b8c
Incorporate Acrolinx feedback
scottaddie 4c76827
Updating sample with preferred idioms and minor doc tweaks
stevejgordon 8a37fc7
Fixing grammar and spelling
stevejgordon b34cda6
Add 2.1 Preview include
scottaddie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 15 additions & 7 deletions
22
aspnetcore/fundamentals/http-requests/samples/Pages/BasicUsage.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
@page | ||
@model BasicUsageModel | ||
@{ | ||
ViewData["Title"] = "Branches for Docs Repo"; | ||
} | ||
|
||
<h1>Branches for Docs Repo</h1> | ||
<h1>@ViewData["Title"]</h1> | ||
|
||
<ul> | ||
@foreach (var branch in Model.Branches) | ||
{ | ||
<li>@branch.Name</li> | ||
} | ||
</ul> | ||
@if (Model.GetBranchesError) | ||
{ | ||
<p>Unable to get branches from GitHub. Please try again later.</p> | ||
} | ||
else | ||
{ | ||
<ul> | ||
@foreach (var branch in Model.Branches) | ||
{ | ||
<li>@branch.Name</li> | ||
} | ||
</ul> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 13 additions & 5 deletions
18
aspnetcore/fundamentals/http-requests/samples/Pages/TypedClient.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
@page | ||
@model TypedClientModel | ||
@{ | ||
ViewData["Title"] = "Latest GitHub Issues for ASP.NET Docs"; | ||
} | ||
|
||
<h1>Latest GitHub Issue for ASP.NET Docs</h1> | ||
<h1>@ViewData["Title"]</h1> | ||
|
||
@if (Model.HasIssue) | ||
@if (Model.GetIssuesError) | ||
{ | ||
<h2>Title: @Model.LastestIssue.Title</h2> | ||
<p><a href="@Model.LastestIssue.Url">View Issue</a></p> | ||
<p>Unable to get issues from GitHub. Please try again later.</p> | ||
} | ||
else if (Model.HasIssue) | ||
{ | ||
@foreach (var issue in Model.LastestIssues) | ||
{ | ||
<h2>Title: @issue.Title</h2> | ||
<p><a href="@issue.Url">View Issue</a></p> | ||
} | ||
} | ||
else | ||
{ | ||
<p>No issues found.</p> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rynowak Do you think this is a reasonable approach when consuming directly inside a Razor Page?