Class FunctionCallWrapper<T>
Wrapper class for calling an existing function in CDF.
Inherited Members
Namespace: Cognite.Extractor.Utils
Assembly: ExtractorUtils.dll
Syntax
public class FunctionCallWrapper<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
| Edit this page View SourceFunctionCallWrapper(CogniteDestination, FunctionCallConfig, ILogger?)
Constructor
Declaration
public FunctionCallWrapper(CogniteDestination destination, FunctionCallConfig config, ILogger? logger)
Parameters
| Type | Name | Description |
|---|---|---|
| CogniteDestination | destination | Cognite destination |
| FunctionCallConfig | config | Function configuration |
| ILogger | logger | Optional logger |
Methods
| Edit this page View SourceTryCall(T, CancellationToken)
Call the configured function, optionally fetching its internalId if it is not found.
Declaration
public Task<bool> TryCall(T arguments, CancellationToken token)
Parameters
| Type | Name | Description |
|---|---|---|
| T | arguments | |
| CancellationToken | token |
Returns
| Type | Description |
|---|---|
| Task<bool> | True if call was successful |