Data Event
Supplies a data chunk received within a POST or PUT upload.
Syntax
public event OnDataHandler OnData; public delegate void OnDataHandler(object sender, RestserverDataEventArgs e); public class RestserverDataEventArgs : EventArgs { public long ConnectionID { get; } public byte[] Buffer { get; } }
Public Event OnData As OnDataHandler Public Delegate Sub OnDataHandler(sender As Object, e As RestserverDataEventArgs) Public Class RestserverDataEventArgs Inherits EventArgs Public ReadOnly Property ConnectionID As Long Public ReadOnly Property Buffer As Byte() End Class
Remarks
This event is fired to supply another piece of data received within a POST or PUT upload operation. This event may fire multiple times during a single request upload to pass the uploaded data to the application chunk-by-chunk.