Ejemplo n.º 1
0
        public void Disconnect(string name)
        {
            var toRemove = new Queue <string>(
                _active
                .Where(s => s.Value.Name == name)
                .Select(s => s.Key)
                );

            while (toRemove.Count > 0)
            {
                var            key     = toRemove.Peek();
                EventProcessor removed = null;
                if (_active.TryRemove(key, out removed))
                {
                    toRemove.Dequeue();
                }
            }
        }
Ejemplo n.º 2
0
 public void AddProcessor(EventProcessor processor)
 {
     _active[processor.Name] = processor;
 }
Ejemplo n.º 3
0
 public void AddProcessor(EventProcessor processor)
 {
     _active[processor.Name] = processor;
 }