Deprecated in 12.0. Use Telligent.Evolution.Extensibility.Sockets.Version2.IMessageBus instead. Plugin which supports communication across multiple app and job server nodes for purposes of cache synchronization, presence, and ISocket-based live functionality.
ISocketMessageBus
is defined in the Telligent.Evolution.Extensibility.Sockets.Version1
namespace of Telligent.Evolution.Platform.dll
Definition
interface ISocketMessageBus : IPlugin, ISingletonPlugin { Task Publish(string messageName, string messageValue); void Subscribe(string messageName, Func<UInt64,string,Task> received); }
Methods
Task Publish(string messageName, string messageValue);
Publishes a message
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
messageName | string | Message Name | Required | ||
messageValue | string | Message Value | Required |
Return Type
Task
void Subscribe(string messageName, Func<UInt64,string,Task> received);
Subscribes a message receiver
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
messageName | string | Message Name | Required | ||
received | Func<UInt64,string,Task> | Received | Required |