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.​IStreamClosedFeature

Assembly: Microsoft.AspNetCore.Connections.Abstractions

Represents the close action for a stream.

Methods

void
OnClosed​(System.​Action<​object> callback, object state)
Registers a callback to be invoked when a stream is closed. If the stream is already in a closed state, the callback will be run immediately.
callback The callback to invoke after the stream is closed.
state The state to pass into the callback.