C# Класс GSF.TimeSeries.Adapters.InputAdapterBase

Represents the base class for any incoming input adapter.
Derived classes are expected to call OnNewMeasurements when new measurements are received.
Наследование: AdapterBase, IInputAdapter
Показать файл Открыть проект

Открытые методы

Метод Описание
Initialize ( ) : void

Initializes InputAdapterBase.

Start ( ) : void

Starts this InputAdapterBase and initiates connection cycle to data input source.

Stop ( ) : void

Stops this InputAdapterBase and disconnects from data input source.

Защищенные методы

Метод Описание
AttemptConnection ( ) : void

Attempts to connect to data input source.

Derived classes should attempt connection to data input source here. Any exceptions thrown by this implementation will result in restart of the connection cycle.

AttemptDisconnection ( ) : void

Attempts to disconnect from data input source.

Derived classes should attempt disconnect from data input source here. Any exceptions thrown by this implementation will be reported to host via AdapterBase.ProcessException event.

Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the InputAdapterBase object and optionally releases the managed resources.

InputAdapterBase ( ) : System

Constructs a new instance of the InputAdapterBase.

OnConnected ( ) : void

Called when data input source connection is established.

Derived classes should call this method manually if UseAsyncConnect is true.

OnDisconnected ( ) : void

Called when data input source is disconnected.

Derived classes should call this method manually if UseAsyncConnect is true.

OnNewMeasurements ( ICollection measurements ) : void

Raises the NewMeasurements event.

OnProcessingComplete ( ) : void

Raises the ProcessingComplete event.

Приватные методы

Метод Описание
AttemptConnectionOperation ( ) : void
m_connectionTimer_Elapsed ( object sender, EventArgs e ) : void

Описание методов

AttemptConnection() защищенный абстрактный Метод

Attempts to connect to data input source.
Derived classes should attempt connection to data input source here. Any exceptions thrown by this implementation will result in restart of the connection cycle.
protected abstract AttemptConnection ( ) : void
Результат void

AttemptDisconnection() защищенный абстрактный Метод

Attempts to disconnect from data input source.
Derived classes should attempt disconnect from data input source here. Any exceptions thrown by this implementation will be reported to host via AdapterBase.ProcessException event.
protected abstract AttemptDisconnection ( ) : void
Результат void

Dispose() защищенный Метод

Releases the unmanaged resources used by the InputAdapterBase object and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

Initialize() публичный Метод

Initializes InputAdapterBase.
public Initialize ( ) : void
Результат void

InputAdapterBase() защищенный Метод

Constructs a new instance of the InputAdapterBase.
protected InputAdapterBase ( ) : System
Результат System

OnConnected() защищенный Метод

Called when data input source connection is established.
Derived classes should call this method manually if UseAsyncConnect is true.
protected OnConnected ( ) : void
Результат void

OnDisconnected() защищенный Метод

Called when data input source is disconnected.
Derived classes should call this method manually if UseAsyncConnect is true.
protected OnDisconnected ( ) : void
Результат void

OnNewMeasurements() защищенный Метод

Raises the NewMeasurements event.
protected OnNewMeasurements ( ICollection measurements ) : void
measurements ICollection
Результат void

OnProcessingComplete() защищенный Метод

Raises the ProcessingComplete event.
protected OnProcessingComplete ( ) : void
Результат void

Start() публичный Метод

Starts this InputAdapterBase and initiates connection cycle to data input source.
public Start ( ) : void
Результат void

Stop() публичный Метод

Stops this InputAdapterBase and disconnects from data input source.
public Stop ( ) : void
Результат void