StreamLink.NET  8.0.1-8.0.1-1132-88354a9
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Public Member Functions | Properties | List of all members
Caplin.StreamLink.IJsonChannel Interface Reference

Represents a JSON channel to a subject on the Liberator. More...

Public Member Functions

void CloseChannel ()
 
void Send (object obj, Caplin.StreamLink.ICommandListener commandListener)
 

Properties

string Subject [get]
 

Detailed Description

Represents a JSON channel to a subject on the Liberator.

A Channel provides a bi-directional communication channel between a StreamLink application and a DataSource adapter. Using a Channel in both DataSource and StreamLink provides a simplified method of communication between the two components and can allow you just to use the Caplin platform as a bi-directional messaging pipe.

Member Function Documentation

void Caplin.StreamLink.IJsonChannel.CloseChannel ( )
  • Closes the channel to the Liberator. This will result in a corresponding call to onChannelClose
  • declared in ChannelListener on the DataSource. The delay before onChannelClose is called is defined by the
  • Liberator configuration item, active-discard-timeout.
void Caplin.StreamLink.IJsonChannel.Send ( object  obj,
Caplin.StreamLink.ICommandListener  commandListener 
)
  • Sends object as JSON to the channel subject
  • Parameters
    objthe object to send in JSON format (using the installed JsonHandler to serialize the object to JSON)
  • Parameters
    commandListeneroptional callback for command completion (can set to null).

Property Documentation

string Caplin.StreamLink.IJsonChannel.Subject
get
  • Returns the subject name to which the channel relates.
  • The subject of this channel.

Generated on Mon Feb 26 2024 19:57:57 for StreamLink.NET