LSEG Data Library for .NET

OnError

Optional callback invoked if an error occurs resulting from the request.

Syntax

IChainStream OnError(Action<string, JObject, IChainStream> errorCb)

Usage

The following example demonstrates how to display the messages received when the streaming receives an error message.

var chainStream = Chain.Definition(".AV.O")
                       .GetStream()
                       .OnError((item, error, stream) => {});