Interface ISubscriber

Defines a subscriber (block) that can receive values from an upstream publisher or dispatcher.

Namespace: MOSAIC.Components.Interfaces
Assembly: MOSAIC.dll
Syntax
public interface ISubscriber
Remarks

Subscribers typically register with an IPublisher (directly or via an IOutputDispatcher) to participate in the MOSAIC publish–subscribe pipeline.

Payloads are passed as runtime-typed object values. Implementations are expected to validate and cast the received value to the type(s) they support.

Threading is determined by the publisher/dispatcher implementation; subscribers should be written to be thread-safe unless the pipeline guarantees single-threaded delivery.

Methods

ReceiveInput(object, object)

Receives an input value from a publisher or dispatcher.

Declaration
void ReceiveInput(object sender, object value)
Parameters
Type Name Description
object sender

The originator of the value (typically the publishing block).

object value

The value payload delivered to this subscriber.

Search documentation

Start typing to search the documentation.