IServiceRuntimeWrapper.SubscribeForStoppingNotification 方法

定义

为角色实例“停止”事件订阅给定的偶数处理程序

public void SubscribeForStoppingNotification (object handlerObject, EventHandler<object> handler);
abstract member SubscribeForStoppingNotification : obj * EventHandler<obj> -> unit
Public Sub SubscribeForStoppingNotification (handlerObject As Object, handler As EventHandler(Of Object))

参数

handlerObject
Object

处理程序是静态方法的一部分或 null 的对象

handler
EventHandler<Object>

要订阅的处理程序

适用于