Skip to content

Commit e144e9d

Browse files
committed
[PETOSS-609] Add comments to InterceptRequest/Response
1 parent 392d6e9 commit e144e9d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Xero.NetStandard.OAuth2/Client/ApiClient.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,11 +426,20 @@ private HttpRequestMessage NewRequest(
426426
return request;
427427
}
428428

429+
/// <summary>
430+
/// Intercepts the request before it is sent. Override to add custom logic.
431+
/// </summary>
432+
/// <param name="req">The HTTP request message.</param>
429433
protected virtual void InterceptRequest(HttpRequestMessage req)
430434
{
431435

432436
}
433-
437+
438+
/// <summary>
439+
/// Intercepts the response after it is received. Override to add custom logic.
440+
/// </summary>
441+
/// <param name="req">The HTTP request message.</param>
442+
/// <param name="response">The HTTP response message.</param>
434443
protected virtual void InterceptResponse(HttpRequestMessage req, HttpResponseMessage response)
435444
{
436445

0 commit comments

Comments
 (0)