PrepareWebRequest method

void PrepareWebRequest(
  1. IEwsHttpWebRequest request
)
override
This method is called to apply credentials to a service request before the request is made. The request.

Implementation

void PrepareWebRequest(IEwsHttpWebRequest request) {
  request.Headers.Add("Authorization", "Bearer $accessToken");
}