Commit 8308c3b
Add Debug.Assert that Completion is already completed before awaiting it
ConnectAsync's DisposeAsync already awaits Completion, so by the time
CreateAsync's catch block runs, it's guaranteed to be completed. The
assert documents this invariant.
Agent-Logs-Url: https://github.com/modelcontextprotocol/csharp-sdk/sessions/69e63301-5b59-4d6e-bf84-d1e02e421c67
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>1 parent a43d0d8 commit 8308c3b
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
0 commit comments