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.​IConnectionHeartbeatFeature
Assembly: Microsoft.AspNetCore.Connections.Abstractions
A feature that represents the connection heartbeat.
Methods
void
OnHeartbeat​(System.​Action<​object> action,
object state)
Registers the given <paramref name="action" /> to be called with the associated <paramref name="state" /> on each heartbeat of the connection.
action
The <see cref="T:System.Action`1" /> to invoke.
state
The state for the <paramref name="action" /> .