コード例 #1
0
 public virtual void AddServiceStateCallback(HealthMonitor.ServiceStateCallback cb
                                             )
 {
     lock (this)
     {
         this.serviceStateCallbacks.AddItem(cb);
     }
 }
コード例 #2
0
 public virtual void RemoveServiceStateCallback(HealthMonitor.ServiceStateCallback
                                                cb)
 {
     lock (this)
     {
         serviceStateCallbacks.Remove(cb);
     }
 }