Compartir a través de


MessageFeedbackProcessorClient.MessageFeedbackProcessor Propiedad

Definición

La devolución de llamada que se va a ejecutar cada vez que se reciben comentarios de mensajes del servicio.

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)

Valor de propiedad

Ejemplos

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; }

Comentarios

No debe ser null.

Se aplica a