Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Kafka] Added possibility to add DefaultConnectionString #4522

Conversation

Snotax
Copy link

@Snotax Snotax commented Oct 11, 2023

Added possibility to add DefaultConnectionString if connection string in trigger/activity is empty


public SendKafkaMessage(IMessageSenderClientFactory messageSenderClientFactory)
public SendKafkaMessage(IMessageSenderClientFactory messageSenderClientFactory, KafkaOptions kafkaOptions)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the KafkaOptions type registered with DI somewhere? If not, I think this will cause an exception when trying to resolve the activity from the service container.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KafkaOptions are already injected as a singleton and are currently used for default SASL credentials.

@sfmskywalker sfmskywalker merged commit 4654fa0 into elsa-workflows:master Oct 16, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants