IConnectionHeartbeatFeature.OnHeartbeat(Action<Object>, Object) 方法

定义

使用连接的每个检测信号上关联的 state 注册要调用的给定 action

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)

参数

action
Action<Object>

要调用的 Action<T>

state
Object

的状态 action

适用于