Class EventHubTriggerAttribute
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
stringEvent 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
ConsumerGroup
Optional Name of the consumer group. If missing, then use the default name, "$Default"
public string ConsumerGroup { get; set; }
Property Value
EventHubName
Name of the event hub.
public string EventHubName { get; }