Interface IMessageBus
Specifies a cloud of nodes that can communicate with each other through the network.
Inherited Members
Namespace: DotNext.Net.Cluster.Messaging
Assembly: DotNext.Net.Cluster.dll
Syntax
public interface IMessageBus : ICluster, IPeerMesh<IClusterMember>, IPeerMesh<ISubscriber>, IPeerMesh
Properties
| Edit this page View SourceLeader
Gets the leader node.
Declaration
ISubscriber? Leader { get; }
Property Value
| Type | Description |
|---|---|
| ISubscriber |
LeaderRouter
Allows to route messages to the leader even if it is changed during transmission.
Declaration
IOutputChannel LeaderRouter { get; }
Property Value
| Type | Description |
|---|---|
| IOutputChannel |
Members
Gets a set of visible cluster members.
Declaration
IReadOnlyCollection<ISubscriber> Members { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyCollection<ISubscriber> |
Methods
| Edit this page View SourceAddListener(IInputChannel)
Adds message handler.
Declaration
void AddListener(IInputChannel handler)
Parameters
| Type | Name | Description |
|---|---|---|
| IInputChannel | handler | The message handler. |
RemoveListener(IInputChannel)
Removes message handler.
Declaration
void RemoveListener(IInputChannel handler)
Parameters
| Type | Name | Description |
|---|---|---|
| IInputChannel | handler | The message handler. |