dotnet / docs

This repository contains .NET Documentation.
https://learn.microsoft.com/dotnet
Creative Commons Attribution 4.0 International
4.24k stars 5.88k forks source link

Port, redirect and modernize all .NET networking content. #30397

Closed IEvangelist closed 2 years ago

IEvangelist commented 2 years ago

Port, redirect and modernize all .NET networking content. There is a whole sub-doc-set located here:

Much of this content is severely out-of-date, and many code examples reference obsolete APIs. The strategy is to move (port) conceptual content from the Network Programming in the .NET Framework under the modern .NET Fundamentals / Runtime Libraries / Networking TOC:

image

We should converge the existing HTTP-specific content under a new TOC node, .NET Fundamentals / Runtime Libraries / Networking / HTTP. Then we should create several new nodes to capture content specific to additional protocols, such as TCP, UDP, FTP, WebSockets, and whatever else I might be missing. A lot of the legacy content specific to .NET Framework can be modernized and code samples updated accordingly.

Asynchronous patterns such as:

Should be removed in favor of, async/await, Task, and ValueTask (or other task-like alternatives). conceptual rewrites should strive to serve new learned audiences, making adoption easy.

/cc @richlander

richlander commented 2 years ago

This looks great and has very high value. Turns out that modern scenarios require a lot of networking, right?

Some things to consider (likely as advanced scenarios; unordered):

@davidfowl

IEvangelist commented 2 years ago

We do have coverage of Pipelines, and it is discussed in the context of I/O and streams: