FileUploadNotificationProcessorClient.FileUploadNotificationProcessor Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.