Interface IPollableChannel
A MessageChannel from which messages may be actively received through polling
public interface IPollableChannel : IMessageChannel, IServiceNameAware
- Inherited Members
Methods
Receive()
Receive a message from this channel, blocking forever if necessary.
IMessage Receive()
Returns
- IMessage
the message
Receive(int)
Receive a message from this channel, blocking until either a message is available or the specified timeout period elapses.
IMessage Receive(int timeout)
Parameters
timeout
intthe timeout value in milliseconds
Returns
- IMessage
the message or null
ReceiveAsync(CancellationToken)
Receive a message from this channel
ValueTask<IMessage> ReceiveAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokentoken used to signal cancelation