Freigeben über


EventProcessorHost.RegisterEventProcessorAsync Methode

Definition

Überlädt

RegisterEventProcessorAsync<T>()

Dadurch wird die IEventProcessor Implementierung mit dem Host registriert Microsoft.Azure.EventHubs.Processor.DefaultEventProcessorFactory`1. Dadurch wird auch der Host gestartet, und er beginnt, am Partitionsverteilungsprozess teilzunehmen.

RegisterEventProcessorAsync<T>(EventProcessorOptions)

Dadurch wird die IEventProcessor Implementierung mit dem Host registriert Microsoft.Azure.EventHubs.Processor.DefaultEventProcessorFactory`1. Dadurch wird auch der Host gestartet, und er beginnt, am Partitionsverteilungsprozess teilzunehmen.

RegisterEventProcessorAsync<T>()

Quelle:
EventProcessorHost.cs

Dadurch wird die IEventProcessor Implementierung mit dem Host registriert Microsoft.Azure.EventHubs.Processor.DefaultEventProcessorFactory`1. Dadurch wird auch der Host gestartet, und er beginnt, am Partitionsverteilungsprozess teilzunehmen.

public System.Threading.Tasks.Task RegisterEventProcessorAsync<T> () where T : Microsoft.Azure.EventHubs.Processor.IEventProcessor, new();
member this.RegisterEventProcessorAsync : unit -> System.Threading.Tasks.Task (requires 'T :> Microsoft.Azure.EventHubs.Processor.IEventProcessor and 'T : (new : unit -> 'T))
Public Function RegisterEventProcessorAsync(Of T As {IEventProcessorNew}) () As Task

Typparameter

T

Implementierung Ihrer anwendungsspezifischen IEventProcessor.

Gibt zurück

Eine Aufgabe, die angibt, dass EventProcessorHost instance gestartet wurde.

Gilt für:

RegisterEventProcessorAsync<T>(EventProcessorOptions)

Quelle:
EventProcessorHost.cs

Dadurch wird die IEventProcessor Implementierung mit dem Host registriert Microsoft.Azure.EventHubs.Processor.DefaultEventProcessorFactory`1. Dadurch wird auch der Host gestartet, und er beginnt, am Partitionsverteilungsprozess teilzunehmen.

public System.Threading.Tasks.Task RegisterEventProcessorAsync<T> (Microsoft.Azure.EventHubs.Processor.EventProcessorOptions processorOptions) where T : Microsoft.Azure.EventHubs.Processor.IEventProcessor, new();
member this.RegisterEventProcessorAsync : Microsoft.Azure.EventHubs.Processor.EventProcessorOptions -> System.Threading.Tasks.Task (requires 'T :> Microsoft.Azure.EventHubs.Processor.IEventProcessor and 'T : (new : unit -> 'T))
Public Function RegisterEventProcessorAsync(Of T As {IEventProcessorNew}) (processorOptions As EventProcessorOptions) As Task

Typparameter

T

Implementierung Ihrer anwendungsspezifischen IEventProcessor.

Parameter

processorOptions
EventProcessorOptions

Microsoft.Azure.EventHubs.Processor.EventProcessorHost.EventProcessorOptions , um verschiedene Aspekte der Nachrichtenpumpe zu steuern, die erstellt wird, wenn der Besitz für eine bestimmte Partition von EventHub erworben wird.

Gibt zurück

Eine Aufgabe, die angibt, dass EventProcessorHost instance gestartet wurde.

Gilt für: