Table of Contents

Class DataConnectorAdapter

Namespace
Datafication.Core.Adapters
Assembly
Datafication.Core.dll

Provides an adapter for the IDataConnector interface. Facilitates interaction between the DataManager and underlying data connectors by possibly allowing for extended or alternative functionality in the future.

public class DataConnectorAdapter
Inheritance
object
DataConnectorAdapter

Constructors

DataConnectorAdapter(IDataConnector)

Initializes a new instance of the DataConnectorAdapter class with a specified data connector.

public DataConnectorAdapter(IDataConnector dataConnector)

Parameters

dataConnector IDataConnector

The data connector to be used by the adapter.

Methods

FetchDataAsync()

Asynchronously fetches data using the underlying data connector, providing a bridge between the DataManager's request and the data connector's operation.

public Task<DataBlock> FetchDataAsync()

Returns

Task<DataBlock>

A task that represents the asynchronous operation. The value of the TResult parameter contains an DataBlock.