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

Send an event with partition key #36

Closed
EhsanAminii opened this issue Nov 27, 2019 · 2 comments
Closed

Send an event with partition key #36

EhsanAminii opened this issue Nov 27, 2019 · 2 comments

Comments

@EhsanAminii
Copy link

currently i have problem using IAsyncCollector in order to send a message to Event hub with a partition key. how is possible to choose a partition key?

Sample Code:
[EventHub("myevent", Connection = "connectionstring")] IAsyncCollector outboundMessage)

is there any option to choose the partition key by using the following method?
await outboundMessage.AddAsync(message);

Thank you.
Ehsan

@ghost ghost added the Needs: triage 🔍 label Nov 27, 2019
@alrod
Copy link
Member

alrod commented Jan 4, 2020

You can use [EventHub(TestHubName)] EventHubClient client as workaround for now

@alrod
Copy link
Member

alrod commented Jan 4, 2020

Closed as duplicate Azure/azure-sdk-for-net#28245

@alrod alrod closed this as completed Jan 4, 2020
@ghost ghost removed the Needs: triage 🔍 label Jan 4, 2020
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

No branches or pull requests

2 participants