Click or drag to resize

EAPUtilLogApiRequest Method (IAppContext, String, String, String, String, String, Int32, String, String, String, String, Object, Double)

Logs an API request

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static void LogApiRequest(
	IAppContext appCxt,
	string token,
	string requestName,
	string errorMessage = null,
	string content = null,
	string response = null,
	int statusCode = 200,
	string method = null,
	string url = null,
	string ip = null,
	string machineName = null,
	Object relatedID = null,
	double duration = -1
)

Parameters

appCxt
Type: NetQuarryIAppContext
The application context.
token
Type: SystemString
The token.
requestName
Type: SystemString
The request, optional.
errorMessage (Optional)
Type: SystemString
The error message, if any.
content (Optional)
Type: SystemString
The content, optional.
response (Optional)
Type: SystemString
The response, optional.
statusCode (Optional)
Type: SystemInt32
The status code, optional.
method (Optional)
Type: SystemString
The HTTP method, optional.
url (Optional)
Type: SystemString
The url, optional.
ip (Optional)
Type: SystemString
The IP address. If null, the ClientIP is used.
machineName (Optional)
Type: SystemString
The name of the machine.
relatedID (Optional)
Type: SystemObject
The relatedID of the request
duration (Optional)
Type: SystemDouble
The duration of the request
See Also