Exemple #1
0
        /// <summary>
        /// Add a <see cref="IMessageScheduler" /> to the container that sends <see cref="ScheduleMessage{T}" />
        /// to an external message scheduler on the specified endpoint address, such as Quartz or Hangfire.
        /// </summary>
        /// <param name="configurator"></param>
        /// <param name="schedulerEndpointAddress">The endpoint address where the scheduler is running</param>
        public static void AddMessageScheduler(this IRegistrationConfigurator configurator, Uri schedulerEndpointAddress)
        {
            if (schedulerEndpointAddress == null)
            {
                throw new ArgumentNullException(nameof(schedulerEndpointAddress));
            }

            configurator.AddMessageScheduler(new EndpointMessageSchedulerRegistration(schedulerEndpointAddress));
        }
Exemple #2
0
 /// <summary>
 /// Add a <see cref="IMessageScheduler" /> to the container that uses the ActiveMQ scheduler
 /// </summary>
 /// <param name="configurator"></param>
 public static void AddActiveMqMessageScheduler(this IRegistrationConfigurator configurator)
 {
     configurator.AddMessageScheduler(new MessageSchedulerRegistration());
 }
Exemple #3
0
 /// <summary>
 /// Add a <see cref="IMessageScheduler" /> to the container that publishes <see cref="ScheduleMessage{T}" />
 /// to an external message scheduler, such as Quartz or Hangfire.
 /// </summary>
 /// <param name="configurator"></param>
 public static void AddPublishMessageScheduler(this IRegistrationConfigurator configurator)
 {
     configurator.AddMessageScheduler(new PublishEndpointMessageSchedulerRegistration());
 }
Exemple #4
0
 /// <summary>
 /// Add a <see cref="IMessageScheduler" /> to the container that uses the Azure message enqueue time to schedule messages.
 /// </summary>
 /// <param name="configurator"></param>
 public static void AddServiceBusMessageScheduler(this IRegistrationConfigurator configurator)
 {
     configurator.AddMessageScheduler(new MessageSchedulerRegistration());
 }