Interface ISequenceWriter
Can set the headers used to match the message with the sequence it belongs to. If needed it can also split a single message into multiple messages.
Namespace: Silverback.Messaging.Sequences
Assembly: Silverback.Integration.dll
Syntax
public interface ISequenceWriter
Methods
| Improve this doc View sourceCanHandle(IOutboundEnvelope)
Checks whether this writer can and must handle the specified message.
Declaration
bool CanHandle(IOutboundEnvelope envelope)
Parameters
Type | Name | Description |
---|---|---|
IOutboundEnvelope | envelope | The envelope containing the message to be handled. |
Returns
Type | Description |
---|---|
bool | A value indicating whether this writer can and must handle the message. |
ProcessMessageAsync(IOutboundEnvelope)
Sets the headers used to match the message with the sequence it belongs to. If needed it can also split a single message into multiple messages.
Declaration
IAsyncEnumerable<IOutboundEnvelope> ProcessMessageAsync(IOutboundEnvelope envelope)
Parameters
Type | Name | Description |
---|---|---|
IOutboundEnvelope | envelope | The envelope containing the message to be handled. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<IOutboundEnvelope> | An IAsyncEnumerable<T> with the envelopes containing the messages to be produced. |