Interface ISubscribableChannel
A MessageChannel that maintains a registry of subscribers and invokes them to handle messages sent through this channel.
Inherited Members
Namespace: Steeltoe.Messaging
Assembly: Steeltoe.Messaging.Abstractions.dll
Syntax
public interface ISubscribableChannel : IMessageChannel
Methods
| Edit this page View SourceSubscribe(IMessageHandler)
Register a message handler.
Declaration
bool Subscribe(IMessageHandler handler)
Parameters
Type | Name | Description |
---|---|---|
IMessageHandler | handler | the handler to register |
Returns
Type | Description |
---|---|
System.Boolean | false if already registered; otherwise true |
Unsubscribe(IMessageHandler)
Un-register a message handler.
Declaration
bool Unsubscribe(IMessageHandler handler)
Parameters
Type | Name | Description |
---|---|---|
IMessageHandler | handler | the handler to remvoe |
Returns
Type | Description |
---|---|
System.Boolean | false if not registered; otherwise true |