Interface IMessageBus
Specifies a cloud of nodes that can communicate with each other through the network.
Namespace: DotNext.Net.Cluster.Messaging
Assembly: DotNext.Net.Cluster.dll
Syntax
public interface IMessageBus : ICluster
Properties
| Improve this Doc 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
Represents a collection of nodes in the network.
Declaration
IReadOnlyCollection<ISubscriber> Members { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<ISubscriber> |
Methods
| Improve this Doc 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. |
Explicit Interface Implementations
| Improve this Doc View SourceICluster.Leader
Declaration
IClusterMember ICluster.Leader { get; }
Returns
Type | Description |
---|---|
IClusterMember |
ICluster.Members
Declaration
IReadOnlyCollection<IClusterMember> ICluster.Members { get; }
Returns
Type | Description |
---|---|
IReadOnlyCollection<IClusterMember> |