Interface ISubscriber
Represents cluster member that supports messaging.
Inherited Members
Namespace: DotNext.Net.Cluster.Messaging
Assembly: DotNext.Net.Cluster.dll
Syntax
public interface ISubscriber : IClusterMember, IPeer, IOutputChannel
Methods
| Edit this page View SourceSendSignalAsync(IMessage, bool, CancellationToken)
Sends one-way message to this cluster member.
Declaration
Task SendSignalAsync(IMessage message, bool requiresConfirmation = true, CancellationToken token = default)
Parameters
Type | Name | Description |
---|---|---|
IMessage | message | The message to be sent. |
bool | requiresConfirmation | true to wait for confirmation of delivery from receiver; otherwise, false. |
CancellationToken | token | The token that can be used to cancel asynchronous operation. |
Returns
Type | Description |
---|---|
Task | The task representing execution of this method. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Attempts to send message to local or unavailable member. |