Show / Hide Table of Contents

    Interface IProduceStrategyImplementation

    The strategy used to produce the messages.

    Namespace: Silverback.Messaging.Producing
    Assembly: Silverback.Integration.dll
    Syntax
    public interface IProduceStrategyImplementation

    Methods

    ProduceAsync(IOutboundEnvelope, CancellationToken)

    Produces the message in the specified envelope.

    Declaration
    Task ProduceAsync(IOutboundEnvelope envelope, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IOutboundEnvelope envelope

    The IOutboundEnvelope containing the message to be produced.

    CancellationToken cancellationToken

    The CancellationToken that can be used to cancel the operation.

    Returns
    Type Description
    Task

    A Task representing the asynchronous operation.

    ProduceAsync(IAsyncEnumerable<IOutboundEnvelope>, CancellationToken)

    Produces the messages in the specified envelopes.

    Declaration
    Task ProduceAsync(IAsyncEnumerable<IOutboundEnvelope> envelopes, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IAsyncEnumerable<IOutboundEnvelope> envelopes

    The IOutboundEnvelope containing the messages to be produced.

    CancellationToken cancellationToken

    The CancellationToken that can be used to cancel the operation.

    Returns
    Type Description
    Task

    A Task representing the asynchronous operation.

    ProduceAsync(IEnumerable<IOutboundEnvelope>, CancellationToken)

    Produces the messages in the specified envelopes.

    Declaration
    Task ProduceAsync(IEnumerable<IOutboundEnvelope> envelopes, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IEnumerable<IOutboundEnvelope> envelopes

    The IOutboundEnvelope containing the messages to be produced.

    CancellationToken cancellationToken

    The CancellationToken that can be used to cancel the operation.

    Returns
    Type Description
    Task

    A Task representing the asynchronous operation.

    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini