Class ExtractionPipelineExtensions
Extension methods for extraction pipelines
public static class ExtractionPipelineExtensions
- Inheritance
-
ExtractionPipelineExtensions
- Inherited Members
Methods
AddConfiguration<T>(IServiceCollection, string, Type[], string, CancellationToken, int, int[])
Use type: remote
to fetch the config from Fusion, or use type: local
to use the local file instead
Example from config.yml using the remote config from Fusion
type: remote # this is required
cognite:
project: ...
host: ...
extraction-pipeline:
pipeline-id: ... # as well as this
idp-authentication:
...
public static Task<T> AddConfiguration<T>(this IServiceCollection services, string path, Type[] types, string appId, CancellationToken token, int version = 1, int[] acceptedConfigVersions = null) where T : BaseConfig
Parameters
services
IServiceCollectionService collection
path
stringPath to config file
types
Type[]Types to use for deserialization
appId
stringApp ID for measuring network data
token
CancellationTokenCancellation token
version
intConfig version
acceptedConfigVersions
int[]Accepted config versions
Returns
- Task<T>
Type Parameters
T
The complete config object to be parsed
AddExtractionPipeline(IServiceCollection, ConnectorConfig)
Adds a extraction pipeline to the service collection
public static void AddExtractionPipeline(this IServiceCollection services, ConnectorConfig config)
Parameters
services
IServiceCollectionService collection
config
ConnectorConfigConnector configuration