Class SilverbackContextKafkaOffsetStoreExtensions
- Namespace
- Silverback.Messaging.Consuming.KafkaOffsetStore
- Assembly
- Silverback.Integration.Kafka.dll
Adds the Kafka offset store specific methods to the ISilverbackContext.
public static class SilverbackContextKafkaOffsetStoreExtensions
- Inheritance
-
SilverbackContextKafkaOffsetStoreExtensions
- Inherited Members
Methods
GetKafkaOffsetStoreScope(ISilverbackContext)
Returns the KafkaOffsetStoreScope to be used to store the offsets.
public static KafkaOffsetStoreScope GetKafkaOffsetStoreScope(this ISilverbackContext context)
Parameters
contextISilverbackContextThe ISilverbackContext.
Returns
Exceptions
- InvalidOperationException
No KafkaOffsetStoreScope is set in the context, because the consumer doesn't use a client-side offset store or the call isn't made while consuming.
SetKafkaOffsetStoreScope(ISilverbackContext, KafkaOffsetStoreScope)
Sets the KafkaOffsetStoreScope to be used to store the offsets.
public static void SetKafkaOffsetStoreScope(this ISilverbackContext context, KafkaOffsetStoreScope scope)
Parameters
contextISilverbackContextThe ISilverbackContext.
scopeKafkaOffsetStoreScopeThe scope.
Exceptions
- InvalidOperationException
A different scope is already set in the context.