Closed EhsanAminii closed 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
You can use [EventHub(TestHubName)] EventHubClient client as workaround for now
Closed as duplicate Azure/azure-sdk-for-net#28245
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