Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<LangVersion>9.0</LangVersion>
<TargetFrameworks>netstandard2.0;net6.0;net472</TargetFrameworks>
<RootNamespace>Microsoft.Graph.PowerShell.Authentication.Core</RootNamespace>
<Version>2.26.1</Version>
<Version>2.30.0</Version>
<!-- Suppress .NET Target Framework Moniker (TFM) Support Build Warnings -->
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
</PropertyGroup>
Expand All @@ -13,9 +13,9 @@
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Azure.Identity" Version="1.13.2" />
<PackageReference Include="Azure.Identity.Broker" Version="1.2.0" />
<PackageReference Include="Microsoft.Graph.Core" Version="3.2.2" />
<PackageReference Include="Azure.Identity" Version="1.14.2" />
<PackageReference Include="Azure.Identity.Broker" Version="1.2.1" />
<PackageReference Include="Microsoft.Graph.Core" Version="3.2.4" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
</ItemGroup>
Expand Down
11 changes: 6 additions & 5 deletions tools/Custom/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -70,7 +71,7 @@ public async Task EventHandler(string id, CancellationToken cancellationToken, F

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

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

private async Task OnResponseCreated(string id, CancellationToken cancellationToken, Func<EventArgs> getEventData, Func<string, CancellationToken, Func<EventArgs>, Task> signal)
{
using (Extensions.NoSynchronizationContext)
using (NoSynchronizationContext)
{
var eventData = EventDataConverter.ConvertFrom(getEventData());
var response = eventData?.ResponseMessage as HttpResponseMessage;
Expand Down Expand Up @@ -138,7 +139,7 @@ await signal(Events.Debug, cancellationToken,

private async Task OnCmdletException(string id, CancellationToken cancellationToken, Func<EventArgs> getEventData, Func<string, CancellationToken, Func<EventArgs>, 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}'"));
Expand All @@ -147,7 +148,7 @@ private async Task OnCmdletException(string id, CancellationToken cancellationTo

private async Task OnCmdletEndProcessing(string id, CancellationToken cancellationToken, Func<EventArgs> getEventData, Func<string, CancellationToken, Func<EventArgs>, Task> signal, InvocationInfo invocationInfo)
{
using (Extensions.NoSynchronizationContext)
using (NoSynchronizationContext)
{
string[] commandNameSegment = invocationInfo.MyCommand.Name.Split('_');
if (commandNameSegment.Length > 1)
Expand Down
Loading