Table of Contents

Interface IConvertDataSource<T>

Namespace
ToSic.Eav.DataSource
Assembly
ToSic.Eav.DataSources.dll

Marks objects which can convert a DataSource to another format.

This will always return some kind of dictionary with stream-names and the converted items as sub-lists. Usually used in serialization scenarios.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public interface IConvertDataSource<T>

Type Parameters

T

Methods

Convert(IDataSource, IEnumerable<string>)

Returns an converted IDataSource, but is serializable.

IDictionary<string, IEnumerable<T>> Convert(IDataSource source, IEnumerable<string> streams = null)

Parameters

source IDataSource

the source

streams IEnumerable<string>

names of streams to publish. if null, will return all streams

Returns

IDictionary<string, IEnumerable<T>>

Convert(IDataSource, string)

Returns an converted IDataSource, but is serializable.

IDictionary<string, IEnumerable<T>> Convert(IDataSource source, string streams)

Parameters

source IDataSource

the source

streams string

names of streams to publish. if null, will return all streams

Returns

IDictionary<string, IEnumerable<T>>