Setup an 'trigger' on a parameter to listen on events from an event hub.
Inheritance
System.Attribute
EventHubTriggerAttribute
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.WebJobs.Extensions.EventHubs.dll
Syntax
[Microsoft.Azure.WebJobs.Description.Binding] [System.AttributeUsage(System.AttributeTargets.Parameter)] public sealed class EventHubTriggerAttribute : AttributeConstructors
EventHubTriggerAttribute(String)
Create an instance of this attribute.
Declaration
public EventHubTriggerAttribute (string eventHubName);Parameters
| System.String eventHubName 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.
Declaration
public string Connection { get; set; }Property Value
| System.String |
ConsumerGroup
Optional Name of the consumer group. If missing, then use the default name, "$Default"
Declaration
public string ConsumerGroup { get; set; }Property Value
| System.String |
EventHubName
Name of the event hub.
Declaration
public string EventHubName { get; }Property Value
| System.String |
ncG1vNJzZmiZqqq%2Fpr%2FDpJuom6Njr627wWeaqKqVY8SqusOorqxmnprBcHDWnplonJ%2Bpu6bAjoagnKqfqLynwI16sa6qlWOkpq6pqJmsZnWtwaa60qKmp6teesOmutOBrJurX2p7cnqRaJipoV%2BCtqS%2Bzqymn6xedse2vsRnjp6aeqSvtHusopqrp6Oks7V6oLOsq51ejLKjls6bqmd9ppq7tZTUm4uroZecsrON062popqlqbJvtNOmow%3D%3D