Compartilhar via


FileUploadNotificationProcessorClient.FileUploadNotificationProcessor Propriedade

Definição

O retorno de chamada a ser executado sempre que a notificação de upload de arquivo é recebida do serviço.

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 da propriedade

Exemplos

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

//...

public AcknowledgementType OnFileUploadNotificationReceived(FileUploadNotification fileUploadNotification) { Console.WriteLine($"Notificação de upload de arquivo recebida do dispositivo {fileUploadNotification.DeviceId}") retorna AcknowledgementType.Complete; }

Comentários

Não deve ser nulo.

Aplica-se a