Show / Hide Table of Contents

    Class IntegrationSpy

    Monitors and collects all outbound and inbound messages.

    Inheritance
    object
    IntegrationSpy
    Implements
    IIntegrationSpy
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Testing
    Assembly: Silverback.Integration.Testing.dll
    Syntax
    public class IntegrationSpy : IIntegrationSpy

    Properties

    | Improve this doc View source

    InboundEnvelopes

    Gets the list of IInboundEnvelope corresponding to all the inbound messages that have been processed by the consumer pipeline (except the ones that couldn't be deserialized, e.g. the ones with an empty body).

    Declaration
    public IReadOnlyList<IInboundEnvelope> InboundEnvelopes { get; }
    Property Value
    Type Description
    IReadOnlyList<IInboundEnvelope>
    | Improve this doc View source

    OutboundEnvelopes

    Gets the list of IOutboundEnvelope corresponding to all the outbound messages.

    Declaration
    public IReadOnlyList<IOutboundEnvelope> OutboundEnvelopes { get; }
    Property Value
    Type Description
    IReadOnlyList<IOutboundEnvelope>
    Remarks

    The messages produces via RawProduce or RawProduceAsync will not go through the Silverback pipeline and will therefore not show up in this collection.

    | Improve this doc View source

    RawInboundEnvelopes

    Gets the list of IRawInboundEnvelope corresponding to all the inbound messages, before they are even processed by the consumer pipeline.

    Declaration
    public IReadOnlyList<IRawInboundEnvelope> RawInboundEnvelopes { get; }
    Property Value
    Type Description
    IReadOnlyList<IRawInboundEnvelope>
    | Improve this doc View source

    RawOutboundEnvelopes

    Gets the list of IRawOutboundEnvelope corresponding to all the actual outbound messages being produced (these may differ from the OutboundEnvelopes, e.g. if chunking is applied).

    Declaration
    public IReadOnlyList<IRawOutboundEnvelope> RawOutboundEnvelopes { get; }
    Property Value
    Type Description
    IReadOnlyList<IRawOutboundEnvelope>
    Remarks

    The messages produces via RawProduce or RawProduceAsync will not go through the Silverback pipeline and will therefore not show up in this collection.

    Methods

    | Improve this doc View source

    AddInboundEnvelope(IInboundEnvelope)

    Adds an item to the InboundEnvelopes.

    Declaration
    public void AddInboundEnvelope(IInboundEnvelope envelope)
    Parameters
    Type Name Description
    IInboundEnvelope envelope

    The IInboundEnvelope to add.

    | Improve this doc View source

    AddOutboundEnvelope(IOutboundEnvelope)

    Adds an item to the OutboundEnvelopes.

    Declaration
    public void AddOutboundEnvelope(IOutboundEnvelope envelope)
    Parameters
    Type Name Description
    IOutboundEnvelope envelope

    The IOutboundEnvelope to add.

    | Improve this doc View source

    AddRawInboundEnvelope(IRawInboundEnvelope)

    Adds an item to the Silverback.Messaging.Messages.RawInboundEnvelope.

    Declaration
    public void AddRawInboundEnvelope(IRawInboundEnvelope envelope)
    Parameters
    Type Name Description
    IRawInboundEnvelope envelope

    The IRawInboundEnvelope to add.

    | Improve this doc View source

    AddRawOutboundEnvelope(IRawOutboundEnvelope)

    Adds an item to the Silverback.Messaging.Messages.RawOutboundEnvelope.

    Declaration
    public void AddRawOutboundEnvelope(IRawOutboundEnvelope envelope)
    Parameters
    Type Name Description
    IRawOutboundEnvelope envelope

    The IRawOutboundEnvelope to add.

    Implements

    IIntegrationSpy
    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini