Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Microsoft.​AspNetCore.​Connections.​Features.​IStreamAbortFeature
Assembly: Microsoft.AspNetCore.Connections.Abstractions
Supports aborting individual sides of a connection stream.
Methods
void
AbortRead​(long errorCode,
ConnectionAbortedException abortReason)
Abort the read side of the connection stream.
errorCode
The error code to send with the abort.
abortReason
A <see cref="T:Microsoft.AspNetCore.Connections.ConnectionAbortedException" /> describing the reason to abort the read side of the connection stream.
void
AbortWrite​(long errorCode,
ConnectionAbortedException abortReason)
Abort the write side of the connection stream.
errorCode
The error code to send with the abort.
abortReason
A <see cref="T:Microsoft.AspNetCore.Connections.ConnectionAbortedException" /> describing the reason to abort the write side of the connection stream.