Plugin which supports communication across multiple app and job server nodes for purposes of cache synchronization, presence, and ISocket-based live functionality.
IMessageBus is defined in the Telligent.Evolution.Extensibility.Sockets.Version2 namespace of Telligent.Evolution.Platform.dll
Definition
interface IMessageBus : IPlugin, ISingletonPlugin { string Identity { get; } Task Publish(string data, CancellationToken cancellationToken = null); void SetController(IMessageBusController controller); }
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| Identity | string | Name of the bus connection, as identified in diagnostics and event monitoring |
Methods
Task Publish(string data, CancellationToken cancellationToken = null);
Publishes a message
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| data | string | Data | Required | ||
| cancellationToken | CancellationToken | Cancellation Token | Optional |
Return Type
Task
void SetController(IMessageBusController controller);
Sets a controller to enable signaling messages received, events, and bus states
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| controller | IMessageBusController | Controller | Required |