Show / Hide Table of Contents

Class FunctionCallWrapper<T>

Wrapper class for calling an existing function in CDF.

Inheritance
object
FunctionCallWrapper<T>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cognite.Extractor.Utils
Assembly: ExtractorUtils.dll
Syntax
public class FunctionCallWrapper<T>
Type Parameters
Name Description
T

Constructors

| Edit this page View Source

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

TryCall(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

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