Azure / azure-functions-eventhubs-extension

Event Hubs extension for Azure Functions
MIT License
20 stars 26 forks source link

Send an event with partition key #36

Closed EhsanAminii closed 4 years ago

EhsanAminii commented 4 years ago

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

alrod commented 4 years ago

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

alrod commented 4 years ago

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