Skip to content

Commit 7fec312

Browse files
update azure.identity tooling (#3403)
1 parent e6298e3 commit 7fec312

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<LangVersion>9.0</LangVersion>
55
<TargetFrameworks>netstandard2.0;net6.0;net472</TargetFrameworks>
66
<RootNamespace>Microsoft.Graph.PowerShell.Authentication.Core</RootNamespace>
7-
<Version>2.26.1</Version>
7+
<Version>2.30.0</Version>
88
<!-- Suppress .NET Target Framework Moniker (TFM) Support Build Warnings -->
99
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
1010
</PropertyGroup>
@@ -13,9 +13,9 @@
1313
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1414
</PropertyGroup>
1515
<ItemGroup>
16-
<PackageReference Include="Azure.Identity" Version="1.13.2" />
17-
<PackageReference Include="Azure.Identity.Broker" Version="1.2.0" />
18-
<PackageReference Include="Microsoft.Graph.Core" Version="3.2.2" />
16+
<PackageReference Include="Azure.Identity" Version="1.14.2" />
17+
<PackageReference Include="Azure.Identity.Broker" Version="1.2.1" />
18+
<PackageReference Include="Microsoft.Graph.Core" Version="3.2.4" />
1919
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
2020
<PackageReference Include="System.Text.Json" Version="8.0.5" />
2121
</ItemGroup>

tools/Custom/Module.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using NamespacePrefixPlaceholder.PowerShell.Runtime;
1212
using Microsoft.Graph.PowerShell.Authentication;
1313
using Microsoft.Graph.PowerShell.Authentication.Helpers;
14+
using static NamespacePrefixPlaceholder.PowerShell.Runtime.Extensions;
1415

1516
namespace NamespacePrefixPlaceholder.PowerShell
1617
{
@@ -70,7 +71,7 @@ public async Task EventHandler(string id, CancellationToken cancellationToken, F
7071

7172
private async Task OnCmdletBeginProcessing(string id, CancellationToken cancellationToken, Func<EventArgs> getEventData, Func<string, CancellationToken, Func<EventArgs>, Task> signal, InvocationInfo invocationInfo)
7273
{
73-
using (Extensions.NoSynchronizationContext)
74+
using (NoSynchronizationContext)
7475
{
7576
string[] commandNameSegment = invocationInfo.MyCommand.Name.Split('_');
7677
if (commandNameSegment.Length > 1)
@@ -93,7 +94,7 @@ private async Task OnCmdletBeginProcessing(string id, CancellationToken cancella
9394

9495
private async Task OnBeforeCall(string id, CancellationToken cancellationToken, Func<EventArgs> getEventData, Func<string, CancellationToken, Func<EventArgs>, Task> signal)
9596
{
96-
using (Extensions.NoSynchronizationContext)
97+
using (NoSynchronizationContext)
9798
{
9899
var eventData = EventDataConverter.ConvertFrom(getEventData());
99100
var request = eventData?.RequestMessage as HttpRequestMessage;
@@ -107,7 +108,7 @@ await signal(Events.Debug, cancellationToken,
107108

108109
private async Task OnResponseCreated(string id, CancellationToken cancellationToken, Func<EventArgs> getEventData, Func<string, CancellationToken, Func<EventArgs>, Task> signal)
109110
{
110-
using (Extensions.NoSynchronizationContext)
111+
using (NoSynchronizationContext)
111112
{
112113
var eventData = EventDataConverter.ConvertFrom(getEventData());
113114
var response = eventData?.ResponseMessage as HttpResponseMessage;
@@ -138,7 +139,7 @@ await signal(Events.Debug, cancellationToken,
138139

139140
private async Task OnCmdletException(string id, CancellationToken cancellationToken, Func<EventArgs> getEventData, Func<string, CancellationToken, Func<EventArgs>, Task> signal, Exception exception)
140141
{
141-
using (Extensions.NoSynchronizationContext)
142+
using (NoSynchronizationContext)
142143
{
143144
var eventData = EventDataConverter.ConvertFrom(getEventData());
144145
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
147148

148149
private async Task OnCmdletEndProcessing(string id, CancellationToken cancellationToken, Func<EventArgs> getEventData, Func<string, CancellationToken, Func<EventArgs>, Task> signal, InvocationInfo invocationInfo)
149150
{
150-
using (Extensions.NoSynchronizationContext)
151+
using (NoSynchronizationContext)
151152
{
152153
string[] commandNameSegment = invocationInfo.MyCommand.Name.Split('_');
153154
if (commandNameSegment.Length > 1)

0 commit comments

Comments
 (0)