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