Condividi tramite


FileUploadNotificationProcessorClient.FileUploadNotificationProcessor Property

Definition

The callback to be executed each time file upload notification is received from the 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)

Property Value

Examples

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

Remarks

Must not be null.

Applies to