public virtual void AddServiceStateCallback(HealthMonitor.ServiceStateCallback cb ) { lock (this) { this.serviceStateCallbacks.AddItem(cb); } }
public virtual void RemoveServiceStateCallback(HealthMonitor.ServiceStateCallback cb) { lock (this) { serviceStateCallbacks.Remove(cb); } }