Subscribing to a Stream

This section contains an example that demonstrates how to subscribe to a stream.

If you are writing an output adapter, you need to subscribe to a stream. Typically, you read the data being fed to a stream by a query module, process that data according to your application, and then send it to its final destination. For more information about streams, see Data Stream. For more information about adapters, see Adapters.

The file Example_01_GettingDataFromAStream.cs contains source code demonstrating the basic steps you perform to subscribe to a data stream:

  1. Create an instance of a client.
  2. Create a CCL URI identifying the stream.
  3. Subscribe to the stream.
  4. Read data from the stream and process it.
  5. Disconnect from the stream.