IConnectionHeartbeatFeature.OnHeartbeat(Action<Object>, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers the given action
to be called with the associated state
on each heartbeat of the connection.
public:
void OnHeartbeat(Action<System::Object ^> ^ action, System::Object ^ state);
public void OnHeartbeat (Action<object> action, object state);
abstract member OnHeartbeat : Action<obj> * obj -> unit
Public Sub OnHeartbeat (action As Action(Of Object), state As Object)
Parameters
- state
- Object
The state for the action
.