Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Adding SampleID to the SDK Helper
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-szabo committed Oct 7, 2017
1 parent 37355a8 commit 33acc16
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public GraphServiceClient GetAuthenticatedClient(string userId)

// Append the access token to the request
requestMessage.Headers.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);

// This header identifies the sample in the Microsoft Graph service. If extracting this code for your project please remove.
requestMessage.Headers.Add("SampleID", "aspnetcore-connect-sample");
}));

return _graphClient;
Expand Down

0 comments on commit 33acc16

Please sign in to comment.