/// <summary> /// Uses Publish (instead of Send) to schedule messages via the Quartz message scheduler. For this to work, a single /// queue should be used to schedule all messages. If multiple instances are running, they should be on the same Quartz /// cluster. /// </summary> /// <param name="configurator"></param> public static void UsePublishMessageScheduler(this IPipeConfigurator<ConsumeContext> configurator) { if (configurator == null) throw new ArgumentNullException(nameof(configurator)); var pipeBuilderConfigurator = new PublishMessageSchedulerPipeSpecification(); configurator.AddPipeSpecification(pipeBuilderConfigurator); }
/// <summary> /// Uses Publish (instead of Send) to schedule messages via the Quartz message scheduler. For this to work, a single /// queue should be used to schedule all messages. If multiple instances are running, they should be on the same Quartz /// cluster. /// </summary> /// <param name="configurator"></param> public static void UsePublishMessageScheduler(this IPipeConfigurator <ConsumeContext> configurator) { if (configurator == null) { throw new ArgumentNullException(nameof(configurator)); } var pipeBuilderConfigurator = new PublishMessageSchedulerPipeSpecification(); configurator.AddPipeSpecification(pipeBuilderConfigurator); }