Partager via


FileUploadNotificationProcessorClient.FileUploadNotificationProcessor Propriété

Définition

Rappel à exécuter chaque fois que la notification de chargement de fichier est reçue du service.

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)

Valeur de propriété

Exemples

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

//...

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

Remarques

Ne doit pas avoir la valeur Null.

S’applique à