EventProcessorHost Class

 

Represents a host for processing Event Hubs event data.

Namespace:   Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus.Messaging.EventProcessorHost (in Microsoft.ServiceBus.Messaging.EventProcessorHost.dll)

Inheritance Hierarchy

System.Object
  Microsoft.ServiceBus.Messaging.EventProcessorHost

Syntax

public class EventProcessorHost
public ref class EventProcessorHost 
type EventProcessorHost = class end
Public Class EventProcessorHost

Constructors

Name Description
System_CAPS_pubmethod EventProcessorHost(String, String, String, Func<EventProcessorOptions, MessagingFactory>, Func<CloudBlobClient>)

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

System_CAPS_pubmethod EventProcessorHost(String, String, String, String)

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

Initializes a new instance of the EventProcessorHost class.

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

Initializes a new instance of the EventProcessorHost class.

Properties

Name Description
System_CAPS_pubproperty HostName

Gets the host name, which is a unique name for the EventProcessorHost instance.

System_CAPS_pubproperty PartitionManagerOptions

Gets or sets the PartitionManagerOptions instance used by the EventProcessorHost object.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod RegisterEventProcessorAsync<T>()

Asynchronously registers the IEventProcessor interface implementation with the host using the DefaultEventProcessorFactory<T> factory. This method also starts the host and enables it to start participating in the partition distribution process.

System_CAPS_pubmethod RegisterEventProcessorAsync<T>(EventProcessorOptions)

Asynchronously registers the IEventProcessor interface implementation with the host using the DefaultEventProcessorFactory<T> factory. This method also starts the host and enables it to start participating in the partition distribution process.

System_CAPS_pubmethod RegisterEventProcessorFactoryAsync(IEventProcessorFactory)

Asynchronously registers the event processor factory.

System_CAPS_pubmethod RegisterEventProcessorFactoryAsync(IEventProcessorFactory, EventProcessorOptions)

Asynchronously registers the event processor factory.

System_CAPS_pubmethod ResetAllConnections()

System_CAPS_pubmethod ResetConnection(String)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod UnregisterEventProcessorAsync()

Asynchronously shuts down the EventProcessorHost instance. This method maintains the leases on all partitions currently held, and enables each IEventProcessor instance to shut down cleanly by invoking the CloseAsync method with a Shutdown object.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.ServiceBus.Messaging Namespace

Return to top