Class KafkaMessageConsumerFactory
Inheritance
object
KafkaMessageConsumerFactory
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Kafka
Assembly: Volo.Abp.Kafka.dll
Syntax
public class KafkaMessageConsumerFactory : IKafkaMessageConsumerFactory, ISingletonDependency, IDisposable
Constructors
KafkaMessageConsumerFactory(IServiceScopeFactory)
Declaration
public KafkaMessageConsumerFactory(IServiceScopeFactory serviceScopeFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceScopeFactory | serviceScopeFactory |
Properties
ServiceScope
Declaration
protected IServiceScope ServiceScope { get; }
Property Value
| Type | Description |
|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceScope |
Methods
Create(string, string, string)
Declaration
public IKafkaMessageConsumer Create(string topicName, string groupId, string connectionName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | topicName | |
| string | groupId | |
| string | connectionName |
Returns
| Type | Description |
|---|---|
| IKafkaMessageConsumer |
Dispose()
Declaration
public void Dispose()
Implements
System.IDisposable