IMessageReceiver.receive 方法

定义

重载

receive()

Receives a Message with default server wait time.

receive(Duration serverWaitTime)

Receives a Message with specified server wait time.

receive()

Receives a Message with default server wait time.

public IMessage receive()

返回

The received Message or null if there is no message.

例外

InterruptedException

if the current thread was interrupted while waiting

ServiceBusException

if receive failed

receive(Duration serverWaitTime)

Receives a Message with specified server wait time.

public IMessage receive(Duration serverWaitTime)

参数

serverWaitTime
Duration

The server wait time

返回

The received Message or null if there is no message.

例外

InterruptedException

if the current thread was interrupted while waiting

ServiceBusException

if receive failed

适用于