Share via


EventProcessorHost Constructors

Definition

Overloads

EventProcessorHost(String, String, String, String)

Creates new instance of EventProcessorHost.

EventProcessorHost(String, String, String, Func<EventProcessorOptions,MessagingFactory>, Func<CloudBlobClient>)

Creates new instance of EventProcessorHost.

EventProcessorHost(String, String, String, String, String)

Initializes a new instance of the EventProcessorHost class.

EventProcessorHost(String, String, String, Func<EventProcessorOptions,MessagingFactory>, Func<CloudBlobClient>, String, String)

Creates new instance of EventProcessorHost.

EventProcessorHost(String, String, String, String, String, String, String)

Initializes a new instance of the EventProcessorHost class.

EventProcessorHost(String, String, String, String)

Creates new instance of EventProcessorHost.

public EventProcessorHost (string eventHubPath, string consumerGroupName, string eventHubConnectionString, string storageConnectionString);
new Microsoft.ServiceBus.Messaging.EventProcessorHost : string * string * string * string -> Microsoft.ServiceBus.Messaging.EventProcessorHost
Public Sub New (eventHubPath As String, consumerGroupName As String, eventHubConnectionString As String, storageConnectionString As String)

Parameters

eventHubPath
String

Event Hub path to start receiving messages from.

consumerGroupName
String

Name of Event Hub consumer group to start receiving messages from.

eventHubConnectionString
String

Connection string for Event Hub.

storageConnectionString
String

Connection string of Azure Blob storage account to use for partition distribution.

Applies to

EventProcessorHost(String, String, String, Func<EventProcessorOptions,MessagingFactory>, Func<CloudBlobClient>)

Creates new instance of EventProcessorHost.

public EventProcessorHost (string hostName, string eventHubPath, string consumerGroupName, Func<Microsoft.ServiceBus.Messaging.EventProcessorOptions,Microsoft.ServiceBus.Messaging.MessagingFactory> eventHubClientFactory, Func<Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient> storageClientFactory);
new Microsoft.ServiceBus.Messaging.EventProcessorHost : string * string * string * Func<Microsoft.ServiceBus.Messaging.EventProcessorOptions, Microsoft.ServiceBus.Messaging.MessagingFactory> * Func<Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient> -> Microsoft.ServiceBus.Messaging.EventProcessorHost
Public Sub New (hostName As String, eventHubPath As String, consumerGroupName As String, eventHubClientFactory As Func(Of EventProcessorOptions, MessagingFactory), storageClientFactory As Func(Of CloudBlobClient))

Parameters

hostName
String

Name for EventProcessorHost instance. This must be unique for each instance of the host.

eventHubPath
String

EventHub path to start receiving messages from.

consumerGroupName
String

Name of EventHub consumer group to start receiving messages from.

eventHubClientFactory
Func<EventProcessorOptions,MessagingFactory>

Factory to initialize MessagingFactory to be used by EventProcessorHost for creating EventHubClient and eventually EventHubReceiver. EventProcessorHost maintains a pool of these MessagingFactory objects and will use provided factory whenever a new instance needs to be created based on MaxReceiveClients option.

storageClientFactory
Func<CloudBlobClient>

Factory to initialize Microsoft.ServiceBus.Messaging.EventProcessorHost.CloudBlobClient which is used by EventProcessorHost for lease management and partition distribution among available hosts.

Applies to

EventProcessorHost(String, String, String, String, String)

Initializes a new instance of the EventProcessorHost class.

public EventProcessorHost (string hostName, string eventHubPath, string consumerGroupName, string eventHubConnectionString, string storageConnectionString);
new Microsoft.ServiceBus.Messaging.EventProcessorHost : string * string * string * string * string -> Microsoft.ServiceBus.Messaging.EventProcessorHost
Public Sub New (hostName As String, eventHubPath As String, consumerGroupName As String, eventHubConnectionString As String, storageConnectionString As String)

Parameters

hostName
String

The name of the EventProcessorHost instance. This name must be unique for each instance of the host.

eventHubPath
String

The path to the Event Hub from which to start receiving event data.

consumerGroupName
String

The name of the Event Hubs consumer group from which to start receiving event data.

eventHubConnectionString
String

The connection string for the Event Hub.

storageConnectionString
String

The connection string for the Azure Blob storage account to use for partition distribution.

Applies to

EventProcessorHost(String, String, String, Func<EventProcessorOptions,MessagingFactory>, Func<CloudBlobClient>, String, String)

Creates new instance of EventProcessorHost.

public EventProcessorHost (string hostName, string eventHubPath, string consumerGroupName, Func<Microsoft.ServiceBus.Messaging.EventProcessorOptions,Microsoft.ServiceBus.Messaging.MessagingFactory> eventHubClientFactory, Func<Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient> storageClientFactory, string leaseContainerName, string leaseBlobPrefix = default);
new Microsoft.ServiceBus.Messaging.EventProcessorHost : string * string * string * Func<Microsoft.ServiceBus.Messaging.EventProcessorOptions, Microsoft.ServiceBus.Messaging.MessagingFactory> * Func<Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient> * string * string -> Microsoft.ServiceBus.Messaging.EventProcessorHost
Public Sub New (hostName As String, eventHubPath As String, consumerGroupName As String, eventHubClientFactory As Func(Of EventProcessorOptions, MessagingFactory), storageClientFactory As Func(Of CloudBlobClient), leaseContainerName As String, Optional leaseBlobPrefix As String = Nothing)

Parameters

hostName
String

Name for EventProcessorHost instance. This must be unique for each instance of the host.

eventHubPath
String

EventHub path to start receiving messages from.

consumerGroupName
String

Name of EventHub consumer group to start receiving messages from.

eventHubClientFactory
Func<EventProcessorOptions,MessagingFactory>

Factory to initialize MessagingFactory to be used by EventProcessorHost for creating EventHubClient and eventually EventHubReceiver. EventProcessorHost maintains a pool of these MessagingFactory objects and will use provided factory whenever a new instance needs to be created based on MaxReceiveClients option.

storageClientFactory
Func<CloudBlobClient>

Factory to initialize Microsoft.ServiceBus.Messaging.EventProcessorHost.CloudBlobClient which is used by EventProcessorHost for lease management and partition distribution among available hosts.

leaseContainerName
String

Name of Azure Blob container where all lease blobs are created. If this is not passed in then EventHub path is used as the name of Azure Blob container.

leaseBlobPrefix
String

The prefix of lease blob files.

Applies to

EventProcessorHost(String, String, String, String, String, String, String)

Initializes a new instance of the EventProcessorHost class.

public EventProcessorHost (string hostName, string eventHubPath, string consumerGroupName, string eventHubConnectionString, string storageConnectionString, string leaseContainerName, string leaseBlobPrefix = default);
new Microsoft.ServiceBus.Messaging.EventProcessorHost : string * string * string * string * string * string * string -> Microsoft.ServiceBus.Messaging.EventProcessorHost
Public Sub New (hostName As String, eventHubPath As String, consumerGroupName As String, eventHubConnectionString As String, storageConnectionString As String, leaseContainerName As String, Optional leaseBlobPrefix As String = Nothing)

Parameters

hostName
String

The name of the EventProcessorHost instance. This name must be unique for each instance of the host.

eventHubPath
String

The path to the Event Hub from which to start receiving event data.

consumerGroupName
String

The name of the Event Hubs consumer group from which to start receiving event data.

eventHubConnectionString
String

The connection string for the Event Hub.

storageConnectionString
String

The connection string for the Azure Blob storage account to use for partition distribution.

leaseContainerName
String

The 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.

leaseBlobPrefix
String

The prefix of lease blob files.

Applies to