RTD.DB Add-Ins

RTD.DB Add-Ins

You can preprocess data before sending to a database using add-ins implemented with C++, C#, VB.NET or other languages.

This feature can be used for broadcasting data, for example.

The add-in must implement the IRDDataProcessor interface defined in IDataProcessor.dll:

void IRDDataProcessor.AppStart()
void IRDDataProcessor.AppStop()
bool IRDDataProcessor.ProcessRow(IRDDataRow data)

The ProcessRow method is called before saving data to a database.

The IRDDataRow has the following members:

string ServerName { get; }
string DatabaseName { get; }
string Table { get; }
string ProgID { get; }
object Item(string columnName) { get; set; }

The add-in can read the column data of the current row and change it using the Item property.

The data processor add-in must be attached in the configuration file.

For example:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
    <add key="DataProcessor" value="RTDataBroadcastProcessor.dll"/>
  </appSettings>
</configuration>

You can find add-in examples implemented with C# and VB in the DataProcessor.zip file in the downloaded package.