Compartir a través de


FileUploadNotificationProcessorClient.FileUploadNotificationProcessor Propiedad

Definición

La devolución de llamada que se va a ejecutar cada vez que se recibe la notificación de carga de archivos del servicio.

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

Valor de propiedad

Ejemplos

serviceClient.FileUploadNotificationProcessor.FileUploadNotificationProcessor = OnFileUploadNotificationReceived; serviceClient.FileUploadNotificationProcessor.OpenAsync();

//...

public AcknowledgementType OnFileUploadNotificationReceived(FileUploadNotification fileUploadNotification) { Console.WriteLine($"Received file upload notification from device {fileUploadNotification.DeviceId}") return AcknowledgementType.Complete; }

Comentarios

No debe ser null.

Se aplica a