LSEG Data Library for .NET

OnAdd

Optional callback invoked when a new element has been added to the chain increasing its size.

These events are called when the initial chain is building but can also occur for some chain records after the initial chain has been built.

Syntax

IChainStream OnAdd(Action<int, string, IChainStream> addCb)

Usage

The following example demonstrates how to display the messages received when a new constituent is added to the stream.

var chainStream = Chain.Definition(".AV.O")
                       .GetStream()
                       .OnAdd((index, newv, stream) => {});