Interface IProduceStrategyImplementation
- Namespace
- Silverback.Messaging.Producing
- Assembly
- Silverback.Integration.dll
The strategy used to produce the messages.
public interface IProduceStrategyImplementation
Methods
ProduceAsync(IOutboundEnvelope, CancellationToken)
Produces the message in the specified envelope.
Task ProduceAsync(IOutboundEnvelope envelope, CancellationToken cancellationToken)
Parameters
envelopeIOutboundEnvelopeThe IOutboundEnvelope containing the message to be produced.
cancellationTokenCancellationTokenThe CancellationToken that can be used to cancel the operation.
Returns
ProduceAsync(IAsyncEnumerable<IOutboundEnvelope>, CancellationToken)
Produces the messages in the specified envelopes.
Task ProduceAsync(IAsyncEnumerable<IOutboundEnvelope> envelopes, CancellationToken cancellationToken)
Parameters
envelopesIAsyncEnumerable<IOutboundEnvelope>The IOutboundEnvelope containing the messages to be produced.
cancellationTokenCancellationTokenThe CancellationToken that can be used to cancel the operation.
Returns
ProduceAsync(IEnumerable<IOutboundEnvelope>, CancellationToken)
Produces the messages in the specified envelopes.
Task ProduceAsync(IEnumerable<IOutboundEnvelope> envelopes, CancellationToken cancellationToken)
Parameters
envelopesIEnumerable<IOutboundEnvelope>The IOutboundEnvelope containing the messages to be produced.
cancellationTokenCancellationTokenThe CancellationToken that can be used to cancel the operation.