Пример #1
0
        public void RaiseEvent(IPipelineStage stage, IEvent @event)
        {
            if (IsEventRegistered(stage, @event))
            {
                _currentstage = Pipeline.Configuration.Stages().FindStage(stage.Name);

                if (_currentstage.FindEvent(@event.GetType()) == null)
                {
                    _currentstage.ForEvent(@event);
                }

                Pipeline.RaiseEvent(_currentstage.Name, @event);
            }
        }
Пример #2
0
 IRegisterStage IRegisterStage.ForEvent <TEvent>()
 {
     _currentStage.ForEvent <TEvent>();
     return(this);
 }