Beispiel #1
0
 public DistributedLockingOptionsBuilder(ElsaOptionsBuilder elsaOptionsBuilder) => ElsaOptionsBuilder = elsaOptionsBuilder;
Beispiel #2
0
 /// <summary>
 /// Adds temporal (time-based) activities to Elsa without using the Hangfire implementation. You need to add Hangfire services yourself.
 /// </summary>
 /// <param name="options">Elsa options</param>
 /// <returns>The Elsa options, enabling method chaining</returns>
 public static ElsaOptionsBuilder AddHangfireTemporalActivities(
     this ElsaOptionsBuilder options) =>
 options.AddCommonTemporalActivities(timer => timer.UseHangfire());
Beispiel #3
0
 /// <summary>
 /// Adds Hangfire services and temporal (time-based) activities to Elsa using the Hangfire implementation.
 /// </summary>
 /// <param name="options">Elsa options</param>
 /// <param name="configure">A Hangfire configuration callback</param>
 /// <returns>The Elsa options, enabling method chaining</returns>
 /// <param name="configureJobServer">Configure Hangfire job server settings</param>
 public static ElsaOptionsBuilder AddHangfireTemporalActivities(
     this ElsaOptionsBuilder options,
     Action <IGlobalConfiguration> configure,
     Action <IServiceProvider, BackgroundJobServerOptions>?configureJobServer = default) =>
 options.AddCommonTemporalActivities(timer => timer.UseHangfire(configure, configureJobServer));
Beispiel #4
0
 /// <summary>
 /// Adds temporal (time-based) activities to Elsa using the Quartz implementation. Also registers Quartz services itself.
 /// </summary>
 /// <param name="options">Elsa options</param>
 /// <param name="configureQuartzOptions"></param>
 /// <param name="configureQuartz">An optional service collection Quartz configuration callback</param>
 /// <param name="configureQuartzHostedService">Use this callback to further configure the Quartz hosted service</param>
 /// <returns>The Elsa options, enabling method chaining</returns>
 public static ElsaOptionsBuilder AddQuartzTemporalActivities(
     this ElsaOptionsBuilder options,
     Action <QuartzOptions>?configureQuartzOptions = default,
     Action <IServiceCollectionQuartzConfigurator>?configureQuartz    = default,
     Action <QuartzHostedServiceOptions>?configureQuartzHostedService = default) =>
 options.AddCommonTemporalActivities(timer => timer.UseQuartzProvider(true, configureQuartzOptions, configureQuartz, configureQuartzHostedService));
 /// <summary>
 /// Adds temporal (time-based) activities to Elsa, using the Hangfire implementation.
 /// </summary>
 /// <param name="options">Elsa options</param>
 /// <param name="configure">A Hangfire configuration callback</param>
 /// <returns>The Elsa options, enabling method chaining</returns>
 public static ElsaOptionsBuilder AddHangfireTemporalActivities(
     this ElsaOptionsBuilder options,
     Action <IGlobalConfiguration> configure) =>
 options.AddCommonTemporalActivities(timer => timer.UseHangfire(configure));
Beispiel #6
0
 public static ElsaOptionsBuilder AddFeatures(this ElsaOptionsBuilder builder, IEnumerable <Type> assemblyMarkerTypes, IConfiguration configuration) => AddFeatures(builder, GetAssemblies(assemblyMarkerTypes), configuration);