Created
October 21, 2021 11:35
-
-
Save MahdiKarimipour/0ed6095603f30ba222af053f1d2bc310 to your computer and use it in GitHub Desktop.
Kafka Service Injection for Event Driven Architecture
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services.AddTransient<IKafkaService>(x => | |
new KafkaService( | |
appSettings.KafkaSettings.Server, | |
appSecrets.KafkaSaslKey, | |
appSecrets.KafkaSaslSecret)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment