Table of Contents

Class EventHubTriggerAttribute

Namespace
Microsoft.Azure.WebJobs
Assembly
Microsoft.Azure.WebJobs.Extensions.EventHubs.dll

Setup an 'trigger' on a parameter to listen on events from an event hub.

[AttributeUsage(AttributeTargets.Parameter)]
public sealed class EventHubTriggerAttribute : Attribute
Inheritance
EventHubTriggerAttribute
Inherited Members

Constructors

EventHubTriggerAttribute(string)

Create an instance of this attribute.

public EventHubTriggerAttribute(string eventHubName)

Parameters

eventHubName string

Event hub to listen on for messages.

Properties

Connection

Gets or sets the optional app setting name that contains the Event Hub connection string. If missing, tries to use a registered event hub receiver.

public string Connection { get; set; }

Property Value

string

ConsumerGroup

Optional Name of the consumer group. If missing, then use the default name, "$Default"

public string ConsumerGroup { get; set; }

Property Value

string

EventHubName

Name of the event hub.

public string EventHubName { get; }

Property Value

string