Beispiel #1
0
 public WebhookActivityTypeProvider(
     IWebhookDefinitionStore webhookDefinitionStore,
     IActivityActivator activityActivator)
 {
     _webhookDefinitionStore = webhookDefinitionStore;
     _activityActivator      = activityActivator;
 }
 public TypeBasedActivityProvider(ElsaOptions options,
                                  IDescribesActivityType describesActivityType,
                                  IActivityActivator activityActivator)
 {
     _describesActivityType = describesActivityType;
     _activityActivator     = activityActivator;
     _elsaOptions           = options;
 }
 public TaskActivityTypeProvider(IDescribesActivityType describesActivityType, IActivityActivator activityActivator, Scoped <IEnumerable <ITasksProvider> > scopedTasksProviders)
 {
     _describesActivityType = describesActivityType;
     _activityActivator     = activityActivator;
     _scopedTasksProviders  = scopedTasksProviders;
 }
 public NotificationActivityTypeProvider(IDescribesActivityType describesActivityType, IActivityActivator activityActivator)
 {
     _describesActivityType = describesActivityType;
     _activityActivator     = activityActivator;
 }
Beispiel #5
0
 public static async Task <T> ActivateActivityAsync <T>(this IActivityActivator activityActivator, ActivityExecutionContext context, CancellationToken cancellationToken = default) where T : IActivity =>
 (T)await activityActivator.ActivateActivityAsync(context, typeof(T), cancellationToken);
Beispiel #6
0
 public CommandActivityTypeProvider(IDescribesActivityType describesActivityType, IActivityActivator activityActivator, Scoped <IEnumerable <ICommandsProvider> > scopedCommandsProviders)
 {
     _describesActivityType   = describesActivityType;
     _activityActivator       = activityActivator;
     _scopedCommandsProviders = scopedCommandsProviders;
 }
Beispiel #7
0
 public WebhookActivityTypeProvider(IActivityActivator activityActivator, IServiceScopeFactory serviceScopeFactory)
 {
     _activityActivator   = activityActivator;
     _serviceScopeFactory = serviceScopeFactory;
 }
 public EventActivityTypeProvider(IDescribesActivityType describesActivityType, IActivityActivator activityActivator, IServiceScopeFactory serviceScopeFactory)
 {
     _describesActivityType = describesActivityType;
     _activityActivator     = activityActivator;
     _serviceScopeFactory   = serviceScopeFactory;
 }