Class AbstractSubscribableChannelWriter
- Namespace
- Steeltoe.Integration.Channel
- Assembly
- Steeltoe.Integration.IntegrationBase.dll
public abstract class AbstractSubscribableChannelWriter : AbstractMessageChannelWriter
- Inheritance
-
AbstractSubscribableChannelWriter
- Derived
- Inherited Members
Constructors
AbstractSubscribableChannelWriter(AbstractSubscribableChannel, ILogger)
protected AbstractSubscribableChannelWriter(AbstractSubscribableChannel channel, ILogger logger = null)
Parameters
channel
AbstractSubscribableChannellogger
ILogger
Properties
Channel
public virtual AbstractSubscribableChannel Channel { get; }
Property Value
Methods
WaitToWriteAsync(CancellationToken)
Returns a ValueTask<TResult> that will complete when space is available to write an item.
public override ValueTask<bool> WaitToWriteAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenA CancellationToken used to cancel the wait operation.
Returns
- ValueTask<bool>
A ValueTask<TResult> that will complete with a true result when space is available to write an item or with a false result when no further writing will be permitted.