Show / Hide Table of Contents

Class CustomAction<TConfig>

A custom action registered by an extractor via RegisterAction(CustomAction<TConfig>).

Inheritance
object
CustomAction<TConfig>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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 Source

CustomAction(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 Source

Description

Human-readable description of what the action does, reported to integrations during startup.

Declaration
public string? Description { get; }
Property Value
Type Description
string
| Edit this page View Source

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
| Edit this page View Source

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>

Extension Methods

DataModelUtils.GetOrCreateResourcesAsync<T, T2>(T2, IEnumerable<InstanceIdentifier>, Func<IEnumerable<InstanceIdentifier>, IEnumerable<SourcedNodeWrite<T>>>, Func<IEnumerable<SourcedNodeWrite<T>>, SanitationMode, (IEnumerable<SourcedNodeWrite<T>>, IEnumerable<CogniteError<SourcedNodeWrite<T>>>)>, int, int, RetryMode, SanitationMode, CancellationToken)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX