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