MessageFeedbackProcessorClient.MessageFeedbackProcessor Property

Definition

The callback to be executed each time message feedback is received from the service.

public Func<Microsoft.Azure.Devices.FeedbackBatch,Microsoft.Azure.Devices.AcknowledgementType> MessageFeedbackProcessor { get; set; }
member this.MessageFeedbackProcessor : Func<Microsoft.Azure.Devices.FeedbackBatch, Microsoft.Azure.Devices.AcknowledgementType> with get, set
Public Property MessageFeedbackProcessor As Func(Of FeedbackBatch, AcknowledgementType)

Property Value

Examples

serviceClient.MessageFeedbackProcessor.MessageFeedbackProcessor = OnFeedbackReceived; serviceClient.MessageFeedbackProcessor.OpenAsync();

//...

public AcknowledgementType OnFeedbackReceived(FeedbackBatch feedbackBatch) { foreach (FeedbackRecord record in feedback.Records) { Console.WriteLine($"Received feedback from device {record.DeviceId}") }

return AcknowledgementType.Complete; }

Remarks

Must not be null.

Applies to