Response Event
Fired when the component sends a response to the client.
Syntax
public event OnResponseHandler OnResponse; public delegate void OnResponseHandler(object sender, QbconnectorResponseEventArgs e); public class QbconnectorResponseEventArgs : EventArgs { public string ConnectionId { get; } public int UserIndex { get; } public string Response { get; } }
Public Event OnResponse As OnResponseHandler Public Delegate Sub OnResponseHandler(sender As Object, e As QbconnectorResponseEventArgs) Public Class QbconnectorResponseEventArgs Inherits EventArgs Public ReadOnly Property ConnectionId As String Public ReadOnly Property UserIndex As Integer Public ReadOnly Property Response As String End Class
Remarks
This event will fire with the raw XML retrieved from QuickBooks and sent to the client.
The ConnectionId indicates which client connection this Request event is firing for. The UserIndex is the index of the user in the AuthorizedUsers collection. Response is the QBXML Response from QuickBooks, which is being transmitted back to the client.
A UserIndex of -1 means that no matching credentials were found in the AuthorizedUsers collection.