Class CustomAction<TConfig>
A custom action registered by an extractor via RegisterAction(CustomAction<TConfig>).
Inherited Members
Namespace: Cognite.Extractor.Utils.Unstable.Tasks
Assembly: ExtractorUtils.dll
Syntax
public sealed class CustomAction<TConfig>
Type Parameters
| Name | Description |
|---|---|
| TConfig | Extractor configuration type. |
Constructors
| Edit this page View SourceCustomAction(string, Func<ActionContext<TConfig>, CancellationToken, Task>, string?)
Constructor.
Declaration
public CustomAction(string name, Func<ActionContext<TConfig>, CancellationToken, Task> target, string? description = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Name of the action, must be unique per extractor. |
| Func<ActionContext<TConfig>, CancellationToken, Task> | target | Callback invoked when this action is triggered. |
| string | description | Human-readable description of what the action does. |
Properties
| Edit this page View SourceDescription
Human-readable description of what the action does, reported to integrations during startup.
Declaration
public string? Description { get; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Name of the action, must be unique among all actions (custom and auto-generated Start/Stop) registered on the extractor.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Target
The callback invoked when this action is triggered.
Declaration
public Func<ActionContext<TConfig>, CancellationToken, Task> Target { get; }
Property Value
| Type | Description |
|---|---|
| Func<ActionContext<TConfig>, CancellationToken, Task> |