Skip to content

Commit

Permalink
Disable PnP Core SDK telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
jansenbe committed Mar 27, 2024
1 parent be3d3ef commit 7201787
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PnP.Scanning/PnP.Scanning.Process/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ private static IHost ConfigureScannerHost(string[] args, int orchestratorPort)
options.PnPContext.GraphFirst = false;
// Remove the HTTP timeout to ensure the request does not end before the throttling is over
options.HttpRequests.Timeout = -1;
// Disable PnP Core SDK telemetry
options.DisableTelemetry = true;
});
services.Configure<PnPCoreOptions>(context.Configuration.GetSection("PnPCore"));
services.AddPnPCoreAuthentication();
Expand Down

0 comments on commit 7201787

Please sign in to comment.