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

Commit 33acc16

Browse files
committed
Adding SampleID to the SDK Helper
1 parent 37355a8 commit 33acc16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MicrosoftGraphAspNetCoreConnectSample/Helpers/GraphSDKHelper.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ public GraphServiceClient GetAuthenticatedClient(string userId)
3131

3232
// Append the access token to the request
3333
requestMessage.Headers.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);
34+
35+
// This header identifies the sample in the Microsoft Graph service. If extracting this code for your project please remove.
36+
requestMessage.Headers.Add("SampleID", "aspnetcore-connect-sample");
3437
}));
3538

3639
return _graphClient;

0 commit comments

Comments
 (0)