diff --git a/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj b/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj
index fded9e51139..df06e3da5c4 100644
--- a/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj
+++ b/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj
@@ -4,7 +4,7 @@
9.0
netstandard2.0;net6.0;net472
Microsoft.Graph.PowerShell.Authentication.Core
- 2.26.1
+ 2.30.0
true
@@ -13,9 +13,9 @@
true
-
-
-
+
+
+
diff --git a/tools/Custom/Module.cs b/tools/Custom/Module.cs
index e4ee1ca60e6..1fc46fec376 100644
--- a/tools/Custom/Module.cs
+++ b/tools/Custom/Module.cs
@@ -11,6 +11,7 @@
using NamespacePrefixPlaceholder.PowerShell.Runtime;
using Microsoft.Graph.PowerShell.Authentication;
using Microsoft.Graph.PowerShell.Authentication.Helpers;
+using static NamespacePrefixPlaceholder.PowerShell.Runtime.Extensions;
namespace NamespacePrefixPlaceholder.PowerShell
{
@@ -70,7 +71,7 @@ public async Task EventHandler(string id, CancellationToken cancellationToken, F
private async Task OnCmdletBeginProcessing(string id, CancellationToken cancellationToken, Func getEventData, Func, Task> signal, InvocationInfo invocationInfo)
{
- using (Extensions.NoSynchronizationContext)
+ using (NoSynchronizationContext)
{
string[] commandNameSegment = invocationInfo.MyCommand.Name.Split('_');
if (commandNameSegment.Length > 1)
@@ -93,7 +94,7 @@ private async Task OnCmdletBeginProcessing(string id, CancellationToken cancella
private async Task OnBeforeCall(string id, CancellationToken cancellationToken, Func getEventData, Func, Task> signal)
{
- using (Extensions.NoSynchronizationContext)
+ using (NoSynchronizationContext)
{
var eventData = EventDataConverter.ConvertFrom(getEventData());
var request = eventData?.RequestMessage as HttpRequestMessage;
@@ -107,7 +108,7 @@ await signal(Events.Debug, cancellationToken,
private async Task OnResponseCreated(string id, CancellationToken cancellationToken, Func getEventData, Func, Task> signal)
{
- using (Extensions.NoSynchronizationContext)
+ using (NoSynchronizationContext)
{
var eventData = EventDataConverter.ConvertFrom(getEventData());
var response = eventData?.ResponseMessage as HttpResponseMessage;
@@ -138,7 +139,7 @@ await signal(Events.Debug, cancellationToken,
private async Task OnCmdletException(string id, CancellationToken cancellationToken, Func getEventData, Func, Task> signal, Exception exception)
{
- using (Extensions.NoSynchronizationContext)
+ using (NoSynchronizationContext)
{
var eventData = EventDataConverter.ConvertFrom(getEventData());
await signal(Events.Debug, cancellationToken, () => EventFactory.CreateLogEvent($"[{id}]: Received exception with message '{eventData?.Message}'"));
@@ -147,7 +148,7 @@ private async Task OnCmdletException(string id, CancellationToken cancellationTo
private async Task OnCmdletEndProcessing(string id, CancellationToken cancellationToken, Func getEventData, Func, Task> signal, InvocationInfo invocationInfo)
{
- using (Extensions.NoSynchronizationContext)
+ using (NoSynchronizationContext)
{
string[] commandNameSegment = invocationInfo.MyCommand.Name.Split('_');
if (commandNameSegment.Length > 1)