Search Results for

    Show / Hide Table of Contents

    Namespace Chapar.Pipeline.Behaviours

    Classes

    DiagnosticsBehaviour<TMessage>

    Logs the start, successful completion, and elapsed time of each message handler, and also creates a distributed tracing Activity with message details.

    DomainExceptionHandlingBehaviour<TMessage>

    Catches IDomainException and logs them as warnings, preventing them from triggering MassTransit's retry policies.

    ErrorHandlingBehaviour<TMessage>

    A generic error handling behaviour that logs any unhandled exceptions before rethrowing them.

    OriginValidationBehaviour<TMessage>

    Validates the origin of an incoming message by checking a configurable header against the AllowedOriginAttribute applied on the message type. This behavior is automatically registered when AddChaparPipeline is called.

    In this article
    Back to top Copyright © 2026