EventProcessorHost Constructor (String, String, String, String, String, String)
Initializes a new instance of the EventProcessorHost class.
Namespace: Microsoft.ServiceBus.Messaging
Assembly: Microsoft.ServiceBus.Messaging.EventProcessorHost (in Microsoft.ServiceBus.Messaging.EventProcessorHost.dll)
Syntax
public EventProcessorHost(
string hostName,
string eventHubPath,
string consumerGroupName,
string eventHubConnectionString,
string storageConnectionString,
string leaseContainerName
)
public:
EventProcessorHost(
String^ hostName,
String^ eventHubPath,
String^ consumerGroupName,
String^ eventHubConnectionString,
String^ storageConnectionString,
String^ leaseContainerName
)
new :
hostName:string *
eventHubPath:string *
consumerGroupName:string *
eventHubConnectionString:string *
storageConnectionString:string *
leaseContainerName:string -> EventProcessorHost
Public Sub New (
hostName As String,
eventHubPath As String,
consumerGroupName As String,
eventHubConnectionString As String,
storageConnectionString As String,
leaseContainerName As String
)
Parameters
hostName
Type: System.StringThe name of the EventProcessorHost instance. This name must be unique for each instance of the host.
eventHubPath
Type: System.StringThe path to the Event Hub from which to start receiving event data.
consumerGroupName
Type: System.StringThe name of the Event Hubs consumer group from which to start receiving event data.
eventHubConnectionString
Type: System.StringThe connection string for the Event Hub.
storageConnectionString
Type: System.StringThe connection string for the Azure Blob storage account to use for partition distribution.
leaseContainerName
Type: System.StringThe name of the Azure Blob container in which all lease blobs are created. If this parameter is not supplied, then the Event Hubs path is used as the name of the Azure Blob container.
See Also
EventProcessorHost Overload
EventProcessorHost Class
Microsoft.ServiceBus.Messaging Namespace
Return to top