MessageCallback.execute(Message message, Object callbackContext) 方法

定义

Executes the callback. The callback should return a response that instructs an IoT Hub to complete, abandon, or reject the message.

public IotHubMessageResult execute(Message message, Object callbackContext)

参数

message
Message

the message.

callbackContext
Object

a custom context given by the developer.

返回

whether the IoT Hub should complete, abandon, or reject the message.

适用于