Class SilverbackContextConsumerPipelineContextExtensions
- Namespace
- Silverback.Messaging.Consuming.Transaction
- Assembly
- Silverback.Integration.dll
Adds the GetConsumerPipelineContext(ISilverbackContext) method to the ISilverbackContext.
public static class SilverbackContextConsumerPipelineContextExtensions
- Inheritance
-
SilverbackContextConsumerPipelineContextExtensions
- Inherited Members
Methods
GetConsumerPipelineContext(ISilverbackContext)
Gets the current ConsumerPipelineContext.
public static ConsumerPipelineContext GetConsumerPipelineContext(this ISilverbackContext context)
Parameters
contextISilverbackContextThe ISilverbackContext.
Returns
TryGetConsumerPipelineContext(ISilverbackContext, out ConsumerPipelineContext?)
Checks whether a ConsumerPipelineContext is set and returns it.
public static bool TryGetConsumerPipelineContext(this ISilverbackContext context, out ConsumerPipelineContext? pipelineContext)
Parameters
contextISilverbackContextThe ISilverbackContext.
pipelineContextConsumerPipelineContext
Returns
- bool
A value indicating whether the ConsumerPipelineContext was found.