C# Class Shared.Kafka.KafkaMessageBus

Inheritance: IKafkaMessageBus
显示文件 Open project: suadev/dotnet-core-microservices-kafka

Public Properties

Property Type Description
_producer Tv>.KafkaProducer

Public Methods

Method Description
KafkaMessageBus ( Shared.Kafka.KafkaProducer producer ) : System.Threading.Tasks
PublishAsync ( key, message ) : Task

Method Details

KafkaMessageBus() public method

public KafkaMessageBus ( Shared.Kafka.KafkaProducer producer ) : System.Threading.Tasks
producer Shared.Kafka.KafkaProducer
return System.Threading.Tasks

PublishAsync() public method

public PublishAsync ( key, message ) : Task
return Task

Property Details

_producer public_oe property

public KafkaProducer _producer
return Tv>.KafkaProducer