Table of Contents

Class EventHubWebJobsExtensions

Namespace
Microsoft.Azure.WebJobs
Assembly
Microsoft.Azure.WebJobs.Extensions.EventHubs.dll
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 EventData

The event to add

partitionKey string

The partition key to use for partition assignment. If null, round-robin partition assignment will be used.

cancellationToken CancellationToken

A token that can be used to cancel the operation.

Returns

Task