Table of Contents

Method AddDataSources

Namespace
LMKit.Retrieval
Assembly
LM-Kit.NET.dll

AddDataSources(IEnumerable<DataSource>)

Registers a collection of new DataSource repositories with this instance, enabling them to be included in subsequent data retrieval operations.

public void AddDataSources(IEnumerable<DataSource> dataSources)

Parameters

dataSources IEnumerable<DataSource>

A collection of DataSource objects representing the repositories to be added.
This collection must not be null, and it should not contain any repositories that are already managed by this instance.

Exceptions

ArgumentNullException

Thrown if the dataSources parameter is null, or if any individual DataSource within the collection is null.

ArgumentException

Thrown if any DataSource in the collection is already managed by this instance, indicating a duplicate entry.

InvalidModelException

Thrown if a DataSource model is not compatible with the ones used by this instance.