Interface IMessageBoard
General interface for all communication boards.
Namespace: Agents.Net
Assembly: Agents.Net.dll
Syntax
public interface IMessageBoard
Remarks
The communication boards are responsible for sending the messages to all registered agents.
Methods
| Improve this Doc View SourcePublish(Message)
Publish the specific message to all consuming and intercepting agents.
Declaration
void Publish(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | The message to publish. |
Register(Agent[])
Register the agents to the message board.
Declaration
void Register(params Agent[] agents)
Parameters
Type | Name | Description |
---|---|---|
Agent[] | agents | Agents to register. |
Remarks
Agents as well as InterceptorAgents are registered with this method.
It can be used after the Start() method, but this should be avoided, as the newly registered agent will not get any messages of the past.
Start()
Start the message board.
Declaration
void Start()
Remarks
Without executing this method, no message will be passed the any agent. When it is executed it will automatically send an InitializeMessage.