5a101a60b3
Add the four core interfaces for the ETL pipeline: - IImportSource: defines data sources for reading - IDataTransformer: defines data transformation layer - IImportDestination: defines data write destinations - IScriptRunner: defines script execution capability
19 lines
570 B
C#
19 lines
570 B
C#
namespace JdeScoping.DataSync.Etl.Contracts;
|
|
|
|
/// <summary>
|
|
/// Defines a runner that can execute scripts as part of the ETL process.
|
|
/// </summary>
|
|
public interface IScriptRunner
|
|
{
|
|
/// <summary>
|
|
/// Executes the script asynchronously.
|
|
/// </summary>
|
|
/// <param name="cancellationToken">Token to cancel the operation.</param>
|
|
Task ExecuteAsync(CancellationToken cancellationToken = default);
|
|
|
|
/// <summary>
|
|
/// Gets the name of this script for logging and identification.
|
|
/// </summary>
|
|
string ScriptName { get; }
|
|
}
|