Class AbstractMessageChannelWriter
Inheritance
System.Object
AbstractMessageChannelWriter
Assembly: Steeltoe.Messaging.MessagingBase.dll
Syntax
public abstract class AbstractMessageChannelWriter : ChannelWriter<IMessage>
Constructors
|
Edit this page
View Source
AbstractMessageChannelWriter(AbstractMessageChannel, ILogger)
Declaration
public AbstractMessageChannelWriter(AbstractMessageChannel channel, ILogger logger = null)
Parameters
Fields
|
Edit this page
View Source
channel
Declaration
protected AbstractMessageChannel channel
Field Value
|
Edit this page
View Source
logger
Declaration
Field Value
Methods
|
Edit this page
View Source
TryComplete(Exception)
Declaration
public override bool TryComplete(Exception error = null)
Parameters
Type |
Name |
Description |
Exception |
error |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
TryWrite(IMessage)
Declaration
public override bool TryWrite(IMessage message)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
WaitToWriteAsync(CancellationToken)
Declaration
public override ValueTask<bool> WaitToWriteAsync(CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
ValueTask<System.Boolean> |
|
|
Edit this page
View Source
WriteAsync(IMessage, CancellationToken)
Declaration
public override ValueTask WriteAsync(IMessage message, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
IMessage |
message |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
ValueTask |
|