From 912cbd8c26f0570095ac948fd353fd26351dfa5a Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Wed, 11 Jan 2023 15:37:19 +0300 Subject: [PATCH] Release 5.16.0 --- CHANGELOG.md | 5 ++++- src/Microsoft.Graph/GraphServiceClient.cs | 5 ++++- src/Microsoft.Graph/Microsoft.Graph.Beta.csproj | 8 ++++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2212e44a77c..a2c603034c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,12 @@ and this project does NOT adhere to [Semantic Versioning](https://semver.org/spe ## [Unreleased] +## [5.16.0-preview] - 2023-01-11 + ### Changed -- [Breaking] Renames `CreateXXXRequestInformation` methods to `ToXXXRequestInformation` +- [Breaking] Renames `CreateXXXRequestInformation` methods to `ToXXXRequestInformation +- Adds `IAuthenticationProvider` parameter to GraphServiceClient constructor taking a httpClient instance. - Latest metadata updates from 12th January 2023 snapshot ## [5.15.0-preview] - 2022-12-16 diff --git a/src/Microsoft.Graph/GraphServiceClient.cs b/src/Microsoft.Graph/GraphServiceClient.cs index 09d68e91da8..7f08707134f 100644 --- a/src/Microsoft.Graph/GraphServiceClient.cs +++ b/src/Microsoft.Graph/GraphServiceClient.cs @@ -71,10 +71,13 @@ public GraphServiceClient( /// Constructs a new . /// /// The customized to be used for making requests + /// The for authenticating request messages. + /// Defaults to so that authentication is handled by custom middleware in the httpClient /// The base service URL. For example, "https://graph.microsoft.com/beta" public GraphServiceClient( HttpClient httpClient, - string baseUrl = null):this(new BaseGraphRequestAdapter(new AnonymousAuthenticationProvider(), graphClientOptions, httpClient: httpClient),baseUrl) + IAuthenticationProvider authenticationProvider = null, + string baseUrl = null):this(new BaseGraphRequestAdapter(authenticationProvider ?? new AnonymousAuthenticationProvider(), graphClientOptions, httpClient: httpClient),baseUrl) { } diff --git a/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj b/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj index c75431eb57b..496dc122737 100644 --- a/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj +++ b/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj @@ -22,12 +22,12 @@ 35MSSharedLib1024.snk true -- Adds support for multi-value headers -- Fixes Guid types represented as strings -- Latest metadata updates from 14th December 2022 snapshot +- [Breaking] Renames `CreateXXXRequestInformation` methods to `ToXXXRequestInformation +- Adds `IAuthenticationProvider` parameter to GraphServiceClient constructor taking a httpClient instance. +- Latest metadata updates from 12th January 2023 snapshot - 5.15.0 + 5.16.0