Class DataPipelineTriggerService
- Namespace
 - FoundationaLLM.DataPipelineEngine.Services
 
- Assembly
 - FoundationaLLM.DataPipelineEngine.dll
 
Provides capabilities for triggering data pipeline runs.
public class DataPipelineTriggerService : DataPipelineBackgroundService, IHostedService, IDisposable, IResourceProviderClient, IDataPipelineTriggerService
  - Inheritance
 - 
      
      
      
      DataPipelineTriggerService
 
- Implements
 
- Inherited Members
 
- Extension Methods
 
Constructors
DataPipelineTriggerService(IResourceValidatorFactory, IServiceProvider, ILogger<DataPipelineTriggerService>)
Provides capabilities for triggering data pipeline runs.
public DataPipelineTriggerService(IResourceValidatorFactory resourceValidatorFactory, IServiceProvider serviceProvider, ILogger<DataPipelineTriggerService> logger)
  Parameters
resourceValidatorFactoryIResourceValidatorFactoryThe factory used to create resource validators.
serviceProviderIServiceProviderThe service collection provided by the dependency injection container.
loggerILogger<DataPipelineTriggerService>The logger used for logging.
Properties
ServiceName
protected override string ServiceName { get; }
  Property Value
Methods
ExecuteAsyncInternal(CancellationToken)
Executes the background service's main logic.
protected override Task ExecuteAsyncInternal(CancellationToken stoppingToken)
  Parameters
stoppingTokenCancellationTokenThe cancellation token used to signal a request to stop the service.
Returns
SetResourceProviders(IEnumerable<IResourceProviderService>)
Implements additional resource provider initialization.
protected override void SetResourceProviders(IEnumerable<IResourceProviderService> resourceProviders)
  Parameters
resourceProvidersIEnumerable<IResourceProviderService>The collection of resource providers available in the main dependency injection container.
TriggerDataPipeline(string, DataPipelineRun, DataPipelineDefinitionSnapshot, UnifiedUserIdentity)
Creates a new data pipeline run.
public Task<DataPipelineRun?> TriggerDataPipeline(string instanceId, DataPipelineRun dataPipelineRun, DataPipelineDefinitionSnapshot dataPipelineSnapshot, UnifiedUserIdentity userIdentity)
  Parameters
instanceIdstringThe FoundationaLLM instance identifier.
dataPipelineRunDataPipelineRunThe data pipeline run to create.
dataPipelineSnapshotDataPipelineDefinitionSnapshotThe snapshot of the definition of the data pipeline at the time the run was triggered.
userIdentityUnifiedUserIdentityThe identity of the user running the operation.
Returns
- Task<DataPipelineRun>
 The newly created data pipeline run.