MessageFeedbackProcessorClient.MessageFeedbackProcessor Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET