public void UnregisterAll(ManagedObjectReference filter) { lock (_thisLock) { if (filter != null) { if (_filterUpdates.ContainsKey(filter.Value)) { PropertyFilterUpdateHandler handler = _filterUpdates[filter.Value]; handler = null; _filterUpdates[filter.Value] = null; } } else { UpdateSet = null; } } }
public void Unregister(ManagedObjectReference filter, PropertyFilterUpdateHandler handler) { lock (_thisLock) { if (_filterUpdates.ContainsKey(filter.Value)) { _filterUpdates[filter.Value] -= handler; } } }
public ManagedObjectReference Register(PropertyFilterSpec spec, bool partialUpdates, PropertyFilterUpdateHandler handler) { lock (_thisLock) { ManagedObjectReference ret = Connection.Service.CreateFilter(Context.propertyCollector, spec, partialUpdates); Register(ret, handler); return ret; } }
public ManagedObjectReference Register(PropertyFilterSpec spec, bool partialUpdates, PropertyFilterUpdateHandler handler) { lock (_thisLock) { ManagedObjectReference ret = Connection.Service.CreateFilter(Context.propertyCollector, spec, partialUpdates); Register(ret, handler); return(ret); } }