I have a GraphServiceClient call. I am having throttling issues and am trying to access the header information that contains the information about the remaining Rate-limit.
It seems as though this header does not exist in a Task<DriveItemCollectionResponse> return object. How can I get this information so that I can cause a delay and avoid throttling?
var task = graphClient
.Drives[_sharePointAssessmentsDriveId]
.Items["root"]
.Children
.GetAsync(requestConfiguration =>
{
requestConfiguration.QueryParameters.Filter = $"name eq '{folderName}'";
});
task.Wait();
return task.Result.Value.SingleOrDefault(e => e.Folder != null)?.Id;