Skip to content

Update Socket & NetworkStream APM docs - #8332

Merged
antonfirsov merged 4 commits into
dotnet:mainfrom
antonfirsov:apm-docs-2
Aug 31, 2022
Merged

antonfirsov merged 4 commits into
dotnet:mainfrom
antonfirsov:apm-docs-2

Conversation

@antonfirsov

@antonfirsov antonfirsov commented Aug 24, 2022 •

Copy link
Copy Markdown
Contributor

Update legacy docs of Begin/End methods to match current behavior:

  • Callbacks are not necessarily executed on separate threads, remove this misleading information
  • Remove arbitrary (& outdated) recommendations about how to work with state objects
  • Simplify text as much as possible
  • Update class remarks to recommend Task-based variants for asynchronous programming
  • Place an [!IMPORTANT] notice to all APM methods, recommending to use Task-based variants instead

Fixes dotnet/runtime#69269

@antonfirsov
antonfirsov requested a review from a team as a code owner August 24, 2022 15:52
@ghost ghost assigned antonfirsov Aug 24, 2022
@ghost

ghost commented Aug 24, 2022

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

Update legacy docs of Begin/End methods to better match current behavior:

  • Callbacks are not necessarily executed on separate threads, remove this misleading information
  • Remove arbitrary (& outdated) recommendations about how to work with state objects
  • Simplify text as much as possible
  • Update class remarks to recommend Task-based variants for asynchronous programming
  • Place an [!IMPORTANT] notice to all APM methods, recommending to use Task-based variants instead

Fixes dotnet/runtime#69269

Author: antonfirsov
Assignees: antonfirsov
Labels:

area-System.Net.Sockets

Milestone: -

@opbld32

opbld32 commented Aug 24, 2022

Copy link
Copy Markdown

Docs Build status updates of commit 3b1d048:

⚠️ Validation status: warnings

File Status Preview URL Details
xml/System.Net.Sockets/NetworkStream.xml ⚠️Warning View Details
xml/System.Net.Sockets/Socket.xml ⚠️Warning View Details

xml/System.Net.Sockets/NetworkStream.xml

  • Line 0, Column 0: [Warning: xref-not-found] Cross reference not found: 'System.Threading.Task'.
  • Line 0, Column 0: [Warning: xref-not-found] Cross reference not found: 'System.Threading.ValueTask'.
  • Line 0, Column 0: [Warning: xref-not-found] Cross reference not found: 'System.Net.Sockets.NetworkStream.WriteASync*'.

xml/System.Net.Sockets/Socket.xml

  • Line 0, Column 0: [Warning: xref-not-found] Cross reference not found: 'System.Net.Sockets.NetworkStream.BeginReceiveFrom*'.

For more details, please refer to the build report.

If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

@opbld30

opbld30 commented Aug 24, 2022

Copy link
Copy Markdown

Docs Build status updates of commit b417a52:

⚠️ Validation status: warnings

File Status Preview URL Details
xml/System.Net.Sockets/NetworkStream.xml ⚠️Warning View Details
xml/System.Net.Sockets/Socket.xml ⚠️Warning View Details

xml/System.Net.Sockets/NetworkStream.xml

  • Line 0, Column 0: [Warning: xref-not-found] Cross reference not found: 'System.Threading.Task'.
  • Line 0, Column 0: [Warning: xref-not-found] Cross reference not found: 'System.Threading.ValueTask'.
  • Line 0, Column 0: [Warning: xref-not-found] Cross reference not found: 'System.Net.Sockets.NetworkStream.WriteASync*'.

xml/System.Net.Sockets/Socket.xml

  • Line 0, Column 0: [Warning: xref-not-found] Cross reference not found: 'System.Net.Sockets.NetworkStream.BeginReceiveFrom*'.

For more details, please refer to the build report.

If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

@rzikm rzikm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, modulo nits

Comment thread xml/System.Net.Sockets/Socket.xml Resolved
@opbld31

opbld31 commented Aug 30, 2022

Copy link
Copy Markdown

Docs Build status updates of commit 9175835:

⚠️ Validation status: warnings

File Status Preview URL Details
xml/System.Net.Sockets/NetworkStream.xml ⚠️Warning View Details
xml/System.Net.Sockets/Socket.xml ⚠️Warning View Details

xml/System.Net.Sockets/NetworkStream.xml

  • Line 0, Column 0: [Warning: xref-not-found] Cross reference not found: 'System.Net.Sockets.NetworkStream.WriteASync*'.

xml/System.Net.Sockets/Socket.xml

  • Line 0, Column 0: [Warning: xref-not-found] Cross reference not found: 'System.Net.Sockets.NetworkStream.BeginReceiveFrom*'.

For more details, please refer to the build report.

If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

@opbld33

opbld33 commented Aug 30, 2022

Copy link
Copy Markdown

Docs Build status updates of commit 44ffe4f:

✅ Validation status: passed

File Status Preview URL Details
xml/System.Net.Sockets/NetworkStream.xml ✅Succeeded View
xml/System.Net.Sockets/Socket.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NetworkStream.BeginRead not conforming to the contract

6 participants