Share via


IConnectionHeartbeatFeature.OnHeartbeat(Action<Object>, Object) Method

Definition

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

action
Action<Object>

The Action<T> to invoke.

state
Object

The state for the action.

Applies to