Partilhar via


PartitionReceiver.SetReceiveHandler(IPartitionReceiveHandler, Boolean) Método

Definição

Define o IPartitionReceiveHandler para processar eventos.

public void SetReceiveHandler (Microsoft.Azure.EventHubs.IPartitionReceiveHandler receiveHandler, bool invokeWhenNoEvents = false);
member this.SetReceiveHandler : Microsoft.Azure.EventHubs.IPartitionReceiveHandler * bool -> unit
Public Sub SetReceiveHandler (receiveHandler As IPartitionReceiveHandler, Optional invokeWhenNoEvents As Boolean = false)

Parâmetros

receiveHandler
IPartitionReceiveHandler

O IPartitionReceiveHandler usado para processar eventos.

invokeWhenNoEvents
Boolean

Sinalizador para indicar se o manipulador deve ser invocado quando a chamada de recebimento atingir o tempo limite.

Aplica-se a