From a45920b02f66c339572405089db99e83a04c6b81 Mon Sep 17 00:00:00 2001 From: Peter Ombwa Date: Tue, 1 Nov 2022 11:11:29 -0700 Subject: [PATCH] Avoid setting `DefaultRequestHeaders` when request is in flight. (#1604) * Avoid setting DefaultRequestHeaders when request is in flight. * Bump version number. --- config/ModuleMetadata.json | 2 +- src/Applications/Applications/readme.md | 2 +- .../Helpers/HttpHelpersTests.cs | 29 ++++++++++++++++++- .../Authentication/Helpers/HttpHelpers.cs | 13 ++------- .../Helpers/RequestUserAgent.cs | 5 ++-- .../Microsoft.Graph.Authentication.psd1 | 11 ++++--- src/Bookings/Bookings/readme.md | 2 +- src/Calendar/Calendar/readme.md | 2 +- .../ChangeNotifications/readme.md | 2 +- .../CloudCommunications/readme.md | 2 +- src/Compliance/Compliance/readme.md | 2 +- .../CrossDeviceExperiences/readme.md | 2 +- .../DeviceManagement.Actions/readme.md | 2 +- .../DeviceManagement.Administration/readme.md | 2 +- .../DeviceManagement.Enrolment/readme.md | 2 +- .../DeviceManagement.Functions/readme.md | 2 +- .../DeviceManagement/readme.md | 2 +- .../Devices.CloudPrint/readme.md | 2 +- .../Devices.CorporateManagement/readme.md | 2 +- .../Devices.ServiceAnnouncement/readme.md | 2 +- .../DirectoryObjects/readme.md | 2 +- src/Education/Education/readme.md | 2 +- src/Files/Files/readme.md | 2 +- src/Financials/Financials/readme.md | 2 +- src/Groups/Groups/readme.md | 2 +- .../Identity.DirectoryManagement/readme.md | 2 +- .../Identity.Governance/readme.md | 2 +- .../Identity.SignIns/readme.md | 2 +- src/Mail/Mail/readme.md | 2 +- src/ManagedTenants/ManagedTenants/readme.md | 2 +- src/Notes/Notes/readme.md | 2 +- src/People/People/readme.md | 2 +- .../PersonalContacts/readme.md | 2 +- src/Planner/Planner/readme.md | 2 +- src/Reports/Reports/readme.md | 2 +- .../SchemaExtensions/readme.md | 2 +- src/Search/Search/readme.md | 2 +- src/Security/Security/readme.md | 2 +- src/Sites/Sites/readme.md | 2 +- src/Teams/Teams/readme.md | 2 +- src/Users.Actions/Users.Actions/readme.md | 2 +- src/Users.Functions/Users.Functions/readme.md | 2 +- src/Users/Users/readme.md | 2 +- src/WindowsUpdates/WindowsUpdates/readme.md | 2 +- tools/Custom/Module.cs | 2 +- 45 files changed, 81 insertions(+), 59 deletions(-) diff --git a/config/ModuleMetadata.json b/config/ModuleMetadata.json index 354da1dada1..da099fde70a 100644 --- a/config/ModuleMetadata.json +++ b/config/ModuleMetadata.json @@ -25,5 +25,5 @@ ], "releaseNotes": "See https://aka.ms/GraphPowerShell-Release.", "assemblyOriginatorKeyFile": "35MSSharedLib1024.snk", - "version": "1.14.0" + "version": "1.14.1" } diff --git a/src/Applications/Applications/readme.md b/src/Applications/Applications/readme.md index 10cd5a06904..d92465fe7ac 100644 --- a/src/Applications/Applications/readme.md +++ b/src/Applications/Applications/readme.md @@ -78,6 +78,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Authentication/Authentication.Test/Helpers/HttpHelpersTests.cs b/src/Authentication/Authentication.Test/Helpers/HttpHelpersTests.cs index 17c76d4671e..f23178d1ddc 100644 --- a/src/Authentication/Authentication.Test/Helpers/HttpHelpersTests.cs +++ b/src/Authentication/Authentication.Test/Helpers/HttpHelpersTests.cs @@ -4,13 +4,15 @@ namespace Microsoft.Graph.Authentication.Test.Helpers { using System; + using System.Collections.Generic; + using System.Management.Automation; using System.Net.Http; + using System.Threading.Tasks; using Microsoft.Graph.Authentication.Core; using Microsoft.Graph.PowerShell.Authentication; using Microsoft.Graph.PowerShell.Authentication.Helpers; using Microsoft.Graph.PowerShell.Authentication.Models; using Xunit; - public class HttpHelpersTests { [Fact] @@ -184,5 +186,30 @@ public void GetGraphHttpClientShouldReturnNewHttpClientSignOutThenSignIn() // reset static instance. GraphSession.Reset(); } + + [Fact] + public async void GetGraphHttpClientShouldBeThreadSafeAsync() + { + GraphSession.Initialize(() => new GraphSession()); + GraphSession.Instance.RequestContext = new RequestContext(); + var authContext = new AuthContext + { + AuthType = AuthenticationType.UserProvidedAccessToken, + ContextScope = ContextScope.Process, + PSHostVersion = new Version("7.2.7") + }; + + var tasks = new List>(); + for (int i = 0; i < 100; i++) + { + tasks.Add(Task.Factory.StartNew(() => HttpHelpers.GetGraphHttpClient(authContext))); + } + var exception = await Record.ExceptionAsync(() => Task.WhenAll(tasks)); + Assert.Null(exception); + + // reset static instance. + GraphSession.Reset(); + } + } } diff --git a/src/Authentication/Authentication/Helpers/HttpHelpers.cs b/src/Authentication/Authentication/Helpers/HttpHelpers.cs index e66cb4a2fe9..b00a6630204 100644 --- a/src/Authentication/Authentication/Helpers/HttpHelpers.cs +++ b/src/Authentication/Authentication/Helpers/HttpHelpers.cs @@ -11,7 +11,6 @@ namespace Microsoft.Graph.PowerShell.Authentication.Helpers using System.Security.Authentication; using Microsoft.Graph.PowerShell.Authentication.Handlers; using System.Management.Automation; - using System; using Microsoft.Graph.PowerShell.Authentication.Core.Interfaces; /// @@ -54,16 +53,6 @@ private static void ReplaceSDKHeader(HttpClient httpClient, string headerName, s } } - public static HttpClient GetGraphHttpClient(InvocationInfo invocationInfo, IAuthContext authContext = null) - { - authContext = authContext ?? GraphSession.Instance.AuthContext; - if (authContext is null) { throw new AuthenticationException(Core.ErrorConstants.Message.MissingAuthContext); } - var httpClient = GetGraphHttpClient(authContext); - var requestUserAgent = new RequestUserAgent(authContext.PSHostVersion, invocationInfo); - ReplaceSDKHeader(httpClient, HttpKnownHeaderNames.UserAgent, requestUserAgent.UserAgent); - return httpClient; - } - /// /// Creates a pre-configured Microsoft Graph . /// @@ -81,6 +70,8 @@ public static HttpClient GetGraphHttpClient(IAuthContext authContext = null) IAuthenticationProvider authProvider = AuthenticationHelpers.GetAuthProvider(authContext); var newHttpClient = GetGraphHttpClient(authProvider, GraphSession.Instance.RequestContext); + var requestUserAgent = new RequestUserAgent(authContext.PSHostVersion, null); + ReplaceSDKHeader(newHttpClient, HttpKnownHeaderNames.UserAgent, requestUserAgent.UserAgent); GraphSession.Instance.GraphHttpClient = newHttpClient; return newHttpClient; } diff --git a/src/Authentication/Authentication/Helpers/RequestUserAgent.cs b/src/Authentication/Authentication/Helpers/RequestUserAgent.cs index 71bbf3639c0..3437d48b9c5 100644 --- a/src/Authentication/Authentication/Helpers/RequestUserAgent.cs +++ b/src/Authentication/Authentication/Helpers/RequestUserAgent.cs @@ -47,8 +47,9 @@ internal string App { get { - var app = string.Format(CultureInfo.InvariantCulture, - "PowerShell/{0} {1}", _psHostVersion, _invocationInfo.MyCommand.Name); + var app = string.Empty; + if (_psHostVersion != null) + app = string.Format(CultureInfo.InvariantCulture, "PowerShell/{0} {1}", _psHostVersion, _invocationInfo?.MyCommand?.Name); return app; } } diff --git a/src/Authentication/Authentication/Microsoft.Graph.Authentication.psd1 b/src/Authentication/Authentication/Microsoft.Graph.Authentication.psd1 index 08535e6373e..2fa3cfaf490 100644 --- a/src/Authentication/Authentication/Microsoft.Graph.Authentication.psd1 +++ b/src/Authentication/Authentication/Microsoft.Graph.Authentication.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft # -# Generated on: 10/25/2022 +# Generated on: 10/31/2022 # @{ @@ -12,7 +12,7 @@ RootModule = './Microsoft.Graph.Authentication.psm1' # Version number of this module. -ModuleVersion = '1.14.0' +ModuleVersion = '1.14.1' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -99,7 +99,9 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Microsoft','Office365','Graph','PowerShell','Teams','Outlook','OneDrive','AzureAD','GraphAPI','Productivity','SharePoint','Intune','SDK' + Tags = 'Microsoft', 'Office365', 'Graph', 'PowerShell', 'Teams', 'Outlook', + 'OneDrive', 'AzureAD', 'GraphAPI', 'Productivity', 'SharePoint', 'Intune', + 'SDK' # A URL to the license for this module. LicenseUri = 'https://aka.ms/devservicesagreement' @@ -124,7 +126,8 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable + +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/Bookings/Bookings/readme.md b/src/Bookings/Bookings/readme.md index 33938af85ee..bb79728d2f3 100644 --- a/src/Bookings/Bookings/readme.md +++ b/src/Bookings/Bookings/readme.md @@ -50,6 +50,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Calendar/Calendar/readme.md b/src/Calendar/Calendar/readme.md index 7e409b65f0f..e1ecdc2d1ca 100644 --- a/src/Calendar/Calendar/readme.md +++ b/src/Calendar/Calendar/readme.md @@ -52,6 +52,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/ChangeNotifications/ChangeNotifications/readme.md b/src/ChangeNotifications/ChangeNotifications/readme.md index 6a23978f375..b98915c96f7 100644 --- a/src/ChangeNotifications/ChangeNotifications/readme.md +++ b/src/ChangeNotifications/ChangeNotifications/readme.md @@ -34,6 +34,6 @@ subject-prefix: '' ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/CloudCommunications/CloudCommunications/readme.md b/src/CloudCommunications/CloudCommunications/readme.md index 002ccd5828d..11a1e1f879d 100644 --- a/src/CloudCommunications/CloudCommunications/readme.md +++ b/src/CloudCommunications/CloudCommunications/readme.md @@ -59,6 +59,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Compliance/Compliance/readme.md b/src/Compliance/Compliance/readme.md index 79905aa03c8..9ed6c875c6a 100644 --- a/src/Compliance/Compliance/readme.md +++ b/src/Compliance/Compliance/readme.md @@ -47,6 +47,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/CrossDeviceExperiences/CrossDeviceExperiences/readme.md b/src/CrossDeviceExperiences/CrossDeviceExperiences/readme.md index 460e183f337..49e51624138 100644 --- a/src/CrossDeviceExperiences/CrossDeviceExperiences/readme.md +++ b/src/CrossDeviceExperiences/CrossDeviceExperiences/readme.md @@ -34,6 +34,6 @@ subject-prefix: '' ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/readme.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/readme.md index 6c0ee7aeef0..aec8654b0b0 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/readme.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/readme.md @@ -166,6 +166,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/readme.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/readme.md index 82c2296bbe4..e62a77d9da4 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/readme.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/readme.md @@ -64,6 +64,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/readme.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/readme.md index 5b9ebdfcc12..66486acdd45 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/readme.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/readme.md @@ -49,6 +49,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/DeviceManagement.Functions/DeviceManagement.Functions/readme.md b/src/DeviceManagement.Functions/DeviceManagement.Functions/readme.md index 1834f28f56c..d9b48b6b030 100644 --- a/src/DeviceManagement.Functions/DeviceManagement.Functions/readme.md +++ b/src/DeviceManagement.Functions/DeviceManagement.Functions/readme.md @@ -47,6 +47,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/DeviceManagement/DeviceManagement/readme.md b/src/DeviceManagement/DeviceManagement/readme.md index 525c034bfe7..2df32dda569 100644 --- a/src/DeviceManagement/DeviceManagement/readme.md +++ b/src/DeviceManagement/DeviceManagement/readme.md @@ -54,6 +54,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/readme.md b/src/Devices.CloudPrint/Devices.CloudPrint/readme.md index 067cfba96ae..58f033cebf9 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/readme.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/readme.md @@ -50,6 +50,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Devices.CorporateManagement/Devices.CorporateManagement/readme.md b/src/Devices.CorporateManagement/Devices.CorporateManagement/readme.md index a1efc6d52a3..b9332ca19a1 100644 --- a/src/Devices.CorporateManagement/Devices.CorporateManagement/readme.md +++ b/src/Devices.CorporateManagement/Devices.CorporateManagement/readme.md @@ -99,6 +99,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/readme.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/readme.md index 0188cfc0be9..b7faebbd671 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/readme.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/readme.md @@ -49,6 +49,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/DirectoryObjects/DirectoryObjects/readme.md b/src/DirectoryObjects/DirectoryObjects/readme.md index da5f40c550e..cdb7b930d0e 100644 --- a/src/DirectoryObjects/DirectoryObjects/readme.md +++ b/src/DirectoryObjects/DirectoryObjects/readme.md @@ -47,6 +47,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Education/Education/readme.md b/src/Education/Education/readme.md index 12eb1ca4426..2b9d1eba369 100644 --- a/src/Education/Education/readme.md +++ b/src/Education/Education/readme.md @@ -35,6 +35,6 @@ subject-prefix: '' ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Files/Files/readme.md b/src/Files/Files/readme.md index 49224d75b13..b6216e2510e 100644 --- a/src/Files/Files/readme.md +++ b/src/Files/Files/readme.md @@ -50,6 +50,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Financials/Financials/readme.md b/src/Financials/Financials/readme.md index 6fdd1b33ae3..ef8d625b2f9 100644 --- a/src/Financials/Financials/readme.md +++ b/src/Financials/Financials/readme.md @@ -42,6 +42,6 @@ subject-prefix: '' ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Groups/Groups/readme.md b/src/Groups/Groups/readme.md index 31dbbeddd59..638f6b6206b 100644 --- a/src/Groups/Groups/readme.md +++ b/src/Groups/Groups/readme.md @@ -120,6 +120,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/readme.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/readme.md index 38de7ab0503..def3666f4ee 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/readme.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/readme.md @@ -70,6 +70,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Identity.Governance/Identity.Governance/readme.md b/src/Identity.Governance/Identity.Governance/readme.md index 689bd73ad2d..2ee3b6ba8d7 100644 --- a/src/Identity.Governance/Identity.Governance/readme.md +++ b/src/Identity.Governance/Identity.Governance/readme.md @@ -320,6 +320,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Identity.SignIns/Identity.SignIns/readme.md b/src/Identity.SignIns/Identity.SignIns/readme.md index eae17daadc1..5b52b235012 100644 --- a/src/Identity.SignIns/Identity.SignIns/readme.md +++ b/src/Identity.SignIns/Identity.SignIns/readme.md @@ -72,6 +72,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Mail/Mail/readme.md b/src/Mail/Mail/readme.md index 025b602ae81..6ce0b1a9c37 100644 --- a/src/Mail/Mail/readme.md +++ b/src/Mail/Mail/readme.md @@ -34,6 +34,6 @@ subject-prefix: '' ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/ManagedTenants/ManagedTenants/readme.md b/src/ManagedTenants/ManagedTenants/readme.md index 2b1be1e72a2..179fd4405d3 100644 --- a/src/ManagedTenants/ManagedTenants/readme.md +++ b/src/ManagedTenants/ManagedTenants/readme.md @@ -43,6 +43,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Notes/Notes/readme.md b/src/Notes/Notes/readme.md index f604f7d4d41..f8ab8ade758 100644 --- a/src/Notes/Notes/readme.md +++ b/src/Notes/Notes/readme.md @@ -44,6 +44,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/People/People/readme.md b/src/People/People/readme.md index 8081a7ef01f..bed3ea413ca 100644 --- a/src/People/People/readme.md +++ b/src/People/People/readme.md @@ -74,6 +74,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/PersonalContacts/PersonalContacts/readme.md b/src/PersonalContacts/PersonalContacts/readme.md index aa7b16269e4..28de0fa0acc 100644 --- a/src/PersonalContacts/PersonalContacts/readme.md +++ b/src/PersonalContacts/PersonalContacts/readme.md @@ -34,6 +34,6 @@ subject-prefix: '' ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Planner/Planner/readme.md b/src/Planner/Planner/readme.md index df73522e4b0..1f3a3528b3c 100644 --- a/src/Planner/Planner/readme.md +++ b/src/Planner/Planner/readme.md @@ -75,6 +75,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Reports/Reports/readme.md b/src/Reports/Reports/readme.md index 1d1f1500d78..ed155ef2a0b 100644 --- a/src/Reports/Reports/readme.md +++ b/src/Reports/Reports/readme.md @@ -79,6 +79,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/SchemaExtensions/SchemaExtensions/readme.md b/src/SchemaExtensions/SchemaExtensions/readme.md index bede6b64cdf..e6bd2e161d2 100644 --- a/src/SchemaExtensions/SchemaExtensions/readme.md +++ b/src/SchemaExtensions/SchemaExtensions/readme.md @@ -35,6 +35,6 @@ subject-prefix: '' ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Search/Search/readme.md b/src/Search/Search/readme.md index 58e6facee1d..8f60b2a9f32 100644 --- a/src/Search/Search/readme.md +++ b/src/Search/Search/readme.md @@ -35,6 +35,6 @@ subject-prefix: '' ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Security/Security/readme.md b/src/Security/Security/readme.md index 8595764b91a..0773a009488 100644 --- a/src/Security/Security/readme.md +++ b/src/Security/Security/readme.md @@ -73,6 +73,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Sites/Sites/readme.md b/src/Sites/Sites/readme.md index 152ec0babeb..e965747aab8 100644 --- a/src/Sites/Sites/readme.md +++ b/src/Sites/Sites/readme.md @@ -88,6 +88,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Teams/Teams/readme.md b/src/Teams/Teams/readme.md index 729715f670b..e9ac029816d 100644 --- a/src/Teams/Teams/readme.md +++ b/src/Teams/Teams/readme.md @@ -63,6 +63,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Users.Actions/Users.Actions/readme.md b/src/Users.Actions/Users.Actions/readme.md index fe26ae26548..bc0e841c4f7 100644 --- a/src/Users.Actions/Users.Actions/readme.md +++ b/src/Users.Actions/Users.Actions/readme.md @@ -146,6 +146,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Users.Functions/Users.Functions/readme.md b/src/Users.Functions/Users.Functions/readme.md index e043355cb22..64d9166e54b 100644 --- a/src/Users.Functions/Users.Functions/readme.md +++ b/src/Users.Functions/Users.Functions/readme.md @@ -61,6 +61,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/Users/Users/readme.md b/src/Users/Users/readme.md index 2a0cffbc760..28b5be24d01 100644 --- a/src/Users/Users/readme.md +++ b/src/Users/Users/readme.md @@ -54,6 +54,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/src/WindowsUpdates/WindowsUpdates/readme.md b/src/WindowsUpdates/WindowsUpdates/readme.md index 28b98abb207..883fd20e048 100644 --- a/src/WindowsUpdates/WindowsUpdates/readme.md +++ b/src/WindowsUpdates/WindowsUpdates/readme.md @@ -77,6 +77,6 @@ directive: ### Versioning ``` yaml -module-version: 1.14.0 +module-version: 1.14.1 release-notes: See https://aka.ms/GraphPowerShell-Release. ``` diff --git a/tools/Custom/Module.cs b/tools/Custom/Module.cs index 264205a5d89..a8d6e7b52ca 100644 --- a/tools/Custom/Module.cs +++ b/tools/Custom/Module.cs @@ -31,7 +31,7 @@ partial void BeforeCreatePipeline(System.Management.Automation.InvocationInfo in // Call Init to trigger any custom initialization needed after // module load and before pipeline is setup and used. Init(); - pipeline = new Runtime.HttpPipeline(new Runtime.HttpClientFactory(HttpHelpers.GetGraphHttpClient(invocationInfo))); + pipeline = new Runtime.HttpPipeline(new Runtime.HttpClientFactory(HttpHelpers.GetGraphHttpClient())); } ///