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, IOutputChannel
Methods
| Improve this Doc View SourceSendSignalAsync(IMessage, Boolean, CancellationToken)
Sends one-way message to this cluster member.
Declaration
Task SendSignalAsync(IMessage message, bool requiresConfirmation = true, CancellationToken token = default(CancellationToken))
Parameters
| Type | Name | Description |
|---|---|---|
| IMessage | message | The message to be sent. |
| Boolean | 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. |
Explicit Interface Implementations
| Improve this Doc View SourceIOutputChannel.SendSignalAsync(IMessage, CancellationToken)
Declaration
Task IOutputChannel.SendSignalAsync(IMessage message, CancellationToken token)
Parameters
| Type | Name | Description |
|---|---|---|
| IMessage | message | |
| CancellationToken | token |
Returns
| Type | Description |
|---|---|
| Task |