/// <summary> /// Register an EventPipeline to the pipeline /// </summary> /// <param name="pipelineId"></param> /// <param name="factory"></param> /// <param name="options"></param> public void Register(string pipelineId, Func <EventPipeline> factory, PipelineOptions options) { _eventBusFactory.Register(pipelineId, factory, options); InitializeServer(); }
/// <summary> /// Register a new <see cref="IEventPipeline"/> factory to the EventBusFactory /// </summary> /// <param name="busFactory"></param> /// <param name="pipelineId"></param> /// <param name="factory"></param> public static void Register(this IEventBusFactory busFactory, string pipelineId, Func <IEventPipeline> factory) => busFactory.Register(pipelineId, factory, new PipelineOptions());