SecureBlackbox 2020 .NET Edition

Questions / Feedback?

DynamicDataNeeded Event

Requests a portion of data to be uploaded from the application.

Syntax

public event OnDynamicDataNeededHandler OnDynamicDataNeeded;

public delegate void OnDynamicDataNeededHandler(object sender, HttpclientDynamicDataNeededEventArgs e);

public class HttpclientDynamicDataNeededEventArgs : EventArgs {
  public int BytesNeeded { get; }
}
Public Event OnDynamicDataNeeded As OnDynamicDataNeededHandler

Public Delegate Sub OnDynamicDataNeededHandler(sender As Object, e As HttpclientDynamicDataNeededEventArgs)

Public Class HttpclientDynamicDataNeededEventArgs Inherits EventArgs
  Public ReadOnly Property BytesNeeded As Integer
End Class

Remarks

If dynamic ('streaming') variants of PUT or POST methods are used, this event is fired periodically to request portions of data to be sent to the server.

When handling this event, assign the next portion of data of BytesNeeded length (or less) to DynamicData. If no more data is available to upload (the whole document has been sent), leave DynamicData empty.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 .NET Edition - Version 20.0 [Build 8165]