Table of Contents

Class SilverbackContextConsumerPipelineContextExtensions

Namespace
Silverback.Messaging.Consuming.Transaction
Assembly
Silverback.Integration.dll
public static class SilverbackContextConsumerPipelineContextExtensions
Inheritance
SilverbackContextConsumerPipelineContextExtensions
Inherited Members

Methods

GetConsumerPipelineContext(ISilverbackContext)

Gets the current ConsumerPipelineContext.

public static ConsumerPipelineContext GetConsumerPipelineContext(this ISilverbackContext context)

Parameters

context ISilverbackContext

The ISilverbackContext.

Returns

ConsumerPipelineContext

The ConsumerPipelineContext.

Exceptions

InvalidOperationException

No ConsumerPipelineContext is set, because the method isn't called while processing a consumed message.

TryGetConsumerPipelineContext(ISilverbackContext, out ConsumerPipelineContext?)

Checks whether a ConsumerPipelineContext is set and returns it.

public static bool TryGetConsumerPipelineContext(this ISilverbackContext context, out ConsumerPipelineContext? pipelineContext)

Parameters

context ISilverbackContext

The ISilverbackContext.

pipelineContext ConsumerPipelineContext

The ConsumerPipelineContext.

Returns

bool

A value indicating whether the ConsumerPipelineContext was found.