MessageHandler Delegate

Definition

Delegate that gets called when a message is received on a particular input.

public delegate System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.MessageResponse> MessageHandler(Message message, object userContext);
type MessageHandler = delegate of Message * obj -> Task<MessageResponse>
Public Delegate Function MessageHandler(message As Message, userContext As Object) As Task(Of MessageResponse) 

Parameters

message
Message

The message received

userContext
Object

The context object passed in

Return Value

Task<MessageResponse>

MessageResponse

Inheritance
MessageHandler

Applies to