Skip to content

Instantly share code, notes, and snippets.

@fnicollier
Created January 20, 2022 07:03
Show Gist options
  • Select an option

  • Save fnicollier/29e38897a99bfd1040bf273e449005e7 to your computer and use it in GitHub Desktop.

Select an option

Save fnicollier/29e38897a99bfd1040bf273e449005e7 to your computer and use it in GitHub Desktop.
/// <summary>
/// The DSL connector interface.
/// </summary>
public interface IConnector
{
/// <summary>
/// The connector's name for reference from the orchestration file.
/// </summary>
string Name { get; }
/// <summary>
/// Executes the connector.
/// </summary>
/// <param name="dslTask">The DSL task for this connector.</param>
/// <param name="processName">The process name.</param>
/// <param name="jsonInput">The JSON input.</param>
/// <param name="cancellationToken">The cancellation token.</param>
Task<DslConnectorResponse> ExecuteAsync(DslTask dslTask, string processName, string jsonInput, CancellationToken cancellationToken);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment