Class EventHubAttribute
Setup an 'output' binding to an EventHub. This can be any output type compatible with an IAsyncCollector.
[AttributeUsage(AttributeTargets.Parameter|AttributeTargets.ReturnValue)]
public sealed class EventHubAttribute : Attribute
- Inheritance
-
EventHubAttribute
- Inherited Members
Constructors
EventHubAttribute(string)
Initialize a new instance of the EventHubAttribute
public EventHubAttribute(string eventHubName)
Parameters
eventHubName
stringName of the event hub.
Properties
Connection
Gets or sets the optional connection string name that contains the Event Hub connection string. If missing, tries to use a registered event hub sender.
public string Connection { get; set; }
Property Value
EventHubName
The name of the event hub.
public string EventHubName { get; }