Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add NSUrlSessionHandler docs #2783

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

Merged
merged 2 commits into from
Aug 12, 2019
Merged

Add NSUrlSessionHandler docs #2783

merged 2 commits into from
Aug 12, 2019

Conversation

migueldeicaza
Copy link
Contributor

Summary

NSUrlSessionHandler documentation

@migueldeicaza migueldeicaza requested a review from karelz as a code owner July 19, 2019 19:02
@mairaw mairaw requested a review from davidsh July 20, 2019 00:25
@mairaw mairaw added the new-content Indicates PRs that contain new articles label Jul 20, 2019
@mairaw mairaw added this to the July 2019 milestone Jul 20, 2019
Copy link

@rpetrusha rpetrusha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, @migueldeicaza. I've left a few suggested changes, including two to fix broken reference links.

@@ -14,8 +14,14 @@
</Base>
<Interfaces />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
<summary>The default message handler used by <see cref="T:System.Net.Http.Http.HttpClient" /> on Apple platforms using the Xamarin stack (iOS, macOS, watchOS, tvOS)</summary>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<summary>The default message handler used by <see cref="T:System.Net.Http.Http.HttpClient" /> on Apple platforms using the Xamarin stack (iOS, macOS, watchOS, tvOS)</summary>
<summary>The default message handler used by <see cref="T:System.Net.Http.HttpClient" /> on Apple platforms using the Xamarin stack (iOS, macOS, watchOS, tvOS)</summary>

<remarks>
<para>The NSUrlSessionHandler is an HTTP client handler that delegates its work to Apple’s built-in <see cref="T:Foundation.NSUrlSession" />.   This is the default when you compile your application, but you can opt-out of it manually in your application by selecting a different handler.  </para>
<para />
<para>Using the Apple NSUrlSession has some advantages over using any socket-based implementation, the chief one being that on mobile device, it will automatically turn on the radio on your behalf and you will avoid a potential timeout or an error if the radio is down.   </para>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<para>Using the Apple NSUrlSession has some advantages over using any socket-based implementation, the chief one being that on mobile device, it will automatically turn on the radio on your behalf and you will avoid a potential timeout or an error if the radio is down.   </para>
<para>Using the Apple NSUrlSession has some advantages over using any socket-based implementation, the chief one being that on a mobile device, it will automatically turn on the radio on your behalf and you will avoid a potential timeout or an error if the radio is down.</para>

<para />
<para>Using the Apple NSUrlSession has some advantages over using any socket-based implementation, the chief one being that on mobile device, it will automatically turn on the radio on your behalf and you will avoid a potential timeout or an error if the radio is down.   </para>
<para />
<para>Additionally, you can configure the handler to continue your downloads even if your application is suspended or has stopped runing.</para>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<para>Additionally, you can configure the handler to continue your downloads even if your application is suspended or has stopped runing.</para>
<para>Additionally, you can configure the handler to continue your downloads even if your application is suspended or has stopped running.</para>

@@ -51,7 +57,7 @@
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<summary>Allows automatic redirection, this defaults to true.</summary>
<value>To be added.</value>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<value>To be added.</value>
<value><see langword="true" /> to allow automatic redirection; otherwise, <see langword="false" />.</value>

@@ -51,7 +57,7 @@
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<summary>Allows automatic redirection, this defaults to true.</summary>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<summary>Allows automatic redirection, this defaults to true.</summary>
<summary>Gets or sets a valud that allows automatic redirection. Its default value is <see langword="true" />.</summary>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo within the suggestion: valud -> value

<param name="cancellationToken">The cancellation token to cancel the operation.</param>
<summary>Sends an HTTP request as an asynchronous operation.</summary>
<returns>The task object representing the asynchronous operation.</returns>
<remarks>This operation is does not block. It returns an instance of <see cref="T:System.Threading.Tasks.Task" /> to represent the asynchronous operation. When the operation completes, <see cref="P:System.Threading.Tasks.Task.Result" />contains the response message.</remarks>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<remarks>This operation is does not block. It returns an instance of <see cref="T:System.Threading.Tasks.Task" /> to represent the asynchronous operation. When the operation completes, <see cref="P:System.Threading.Tasks.Task.Result" />contains the response message.</remarks>
<remarks>This operation is does not block. It returns an instance of <see cref="T:System.Threading.Tasks.Task" /> to represent the asynchronous operation. When the operation completes, <see cref="P:System.Threading.Tasks.Task`1.Result" /> contains the response message.</remarks>

@mairaw
Copy link
Contributor

mairaw commented Aug 7, 2019

@migueldeicaza friendly ping. You should be able to batch all the suggestions into a single commit via the Files changed tab (https://github.com/dotnet/dotnet-api-docs/pull/2783/files).

@rpetrusha
Copy link

I've made the suggested changes, @migueldeicaza. I'll merge your PR when the build completes successfully.

@rpetrusha rpetrusha merged commit 9abc42c into dotnet:master Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-content Indicates PRs that contain new articles
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants