Class EventHubWebJobsExtensions
public static class EventHubWebJobsExtensions
- Inheritance
-
EventHubWebJobsExtensions
- Inherited Members
Methods
AddAsync(IAsyncCollector<EventData>, EventData, string, CancellationToken)
Add an event to be published using the provided partitionKey
for partition assignment.
public static Task AddAsync(this IAsyncCollector<EventData> instance, EventData eventData, string partitionKey, CancellationToken cancellationToken = default)
Parameters
instance
IAsyncCollector<EventData>The instance of the Microsoft.Azure.WebJobs.IAsyncCollector<> that this method was invoked on.
eventData
EventDataThe event to add
partitionKey
stringThe partition key to use for partition assignment. If
null
, round-robin partition assignment will be used.cancellationToken
CancellationTokenA token that can be used to cancel the operation.