public ListenerHandler(IDiscoverListener listener, Predicate <NodeStatistics> filter, Dictionary <string, NodeHandler> node_handlers) { this.listener = listener; this.filter = filter; this.node_handlers = node_handlers; }
public void AddDiscoverListener(IDiscoverListener listener, Predicate <NodeStatistics> filter) { listeners.Add(listener, new ListenerHandler(listener, filter, this.node_handlers)); }