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