dotnet / dotnet/dotnet-api-docs

Error handling information needed

Aperta
#787 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
.net/prod area-System.Net Pri2 untriaged
Lingua principale
C#
Stelle
949
Fork
1.7k
Merge medio
2g 19h
PR unite (30g)
52

Descrizione

The "ReceiveAsync" method does throw exceptions like WebSocketException but it is not mentioned in the document.
Also, after ReceiveAsync throws an exception saying that the remote party closed the connection without closing handshake, the State property of the WebSocket is still Open. Examples on error and closing handling are needed.

---
#### 文档详细信息

⚠ *请勿编辑此部分。 docs.microsoft.com ➟ GitHub 问题链接必须具有此部分。*

* ID: f3e9d105-0964-0a00-068c-c4160e620ce5
* Version Independent ID: 492a8ab2-9f42-aedc-3349-bc5056316874
* Content: [WebSocket.ReceiveAsync Method (System.Net.WebSockets)](https://docs.microsoft.com/zh-cn/dotnet/api/system.net.websockets.websocket.receiveasync?view=netcore-2.1#System_Net_WebSockets_WebSocket_ReceiveAsync_System_Memory_System_Byte__System_Threading_CancellationToken_)
* Content Source: [xml/System.Net.WebSockets/WebSocket.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Net.WebSockets/WebSocket.xml)
* Product: **.net**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con xml/System.Net.WebSockets/WebSocket.xml e la documentazione dell'API ReceiveAsync collegata nell'issue. Documenta il comportamento di WebSocketException, spiega il valore di State dopo una chiusura remota non corretta e aggiungi esempi che illustrino la gestione degli errori e della chiusura; il lavoro è completo quando questi casi sono chiari nella documentazione di ReceiveAsync.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
documentation
Tipo di issue
Documentazione
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.