using Elsa.Features.Services;
using Elsa.Quartz.Features;
using Elsa.Scheduling;
using Elsa.Scheduling.Features;
// ReSharper disable once CheckNamespace
namespace Elsa.Extensions;
///
/// Provides extension methods for the .
///
public static class ModuleExtensions
{
///
/// Installs and configures Quartz.NET. Only use this feature if you are not configuring Quartz.NET yourself.
///
public static IModule UseQuartz(this IModule module, Action? configure = default)
{
return module.Use(configure);
}
///
/// Installs a Quartz.NET implementation for .
///
public static SchedulingFeature UseQuartzScheduler(this SchedulingFeature feature, Action? configure = default)
{
feature.Module.Use(configure);
return feature;
}
}