예제 #1
0
        protected void Accept(RoutingContext <T> context, Action <T> callback)
        {
            _engine.Add(context.Priority, () =>
            {
                if (!context.IsAlive)
                {
                    return;
                }

                T body = context.Body;

                context.Evict();

                if (_disableOnActivation)
                {
                    _enabled = false;
                }

                callback(body);
            });
        }
예제 #2
0
 public void Evict()
 {
     _input.Evict();
 }