/// <summary> /// Enqueues an <see cref="PublishEvent" /> for a later republish regardless of the value of /// <see cref="IPublish{T}.Republish" />. /// </summary> /// <param name="publishEvent">The <see cref="PublishEvent" /> to republish.</param> public static void ForceEnqueue(PublishEvent publishEvent) { if (publishEvent == null) { throw new ArgumentNullException("publishEvent"); } EventQueue.AddEvent(publishEvent); }
/// <summary> /// Raises an <see cref="IEvent{T}" /> and puts it onto the relevant <see cref="IEventQueue" />. /// </summary> /// <param name="evt"></param> public static void RaiseEvent(IEvent <PipelineArgs> evt) { if (evt == null) { throw new ArgumentNullException("evt"); } IEventQueue queue = GetQueue(evt.PipelineName); queue.AddEvent(evt); }