lf-api-client-core-dotnet  1.3.7
Loading...
Searching...
No Matches
UsernamePasswordHandler Class Reference

Username password handler for Laserfiche Self-Hosted API Server to set the authorization header given repository ID, username, password, and base URL. More...

Inheritance diagram for UsernamePasswordHandler:
IHttpRequestHandler

Public Member Functions

Task< bool > AfterSendAsync (HttpResponseMessage httpResponseMessage, CancellationToken cancellationToken)
 Invoked after an HTTP request with the response message and cancellation token.
 
async Task< BeforeSendResultBeforeSendAsync (HttpRequestMessage httpRequestMessage, CancellationToken cancellationToken)
 Invoked before an HTTP request with the request message and cancellation token.
 
 UsernamePasswordHandler (string repositoryId, string username, string password, string baseUrl)
 Constructor.
 

Detailed Description

Username password handler for Laserfiche Self-Hosted API Server to set the authorization header given repository ID, username, password, and base URL.

Constructor & Destructor Documentation

◆ UsernamePasswordHandler()

UsernamePasswordHandler ( string  repositoryId,
string  username,
string  password,
string  baseUrl 
)
inline

Constructor.

Parameters
repositoryIdThe repository ID.
usernameThe username.
passwordThe password.
baseUrlAPI server base URL e.g., https://{APIServerName}/LFRepositoryAPI.

Member Function Documentation

◆ AfterSendAsync()

Task< bool > AfterSendAsync ( HttpResponseMessage  httpResponseMessage,
CancellationToken  cancellationToken 
)
inline

Invoked after an HTTP request with the response message and cancellation token.

Parameters
httpResponseMessage
cancellationToken
Returns
True if the request should be retried.

Implements IHttpRequestHandler.

◆ BeforeSendAsync()

async Task< BeforeSendResult > BeforeSendAsync ( HttpRequestMessage  httpRequestMessage,
CancellationToken  cancellationToken 
)
inline

Invoked before an HTTP request with the request message and cancellation token.

Parameters
httpRequestMessage
cancellationToken
Returns
BeforeSendResult

Implements IHttpRequestHandler.


The documentation for this class was generated from the following file: