Skip to content

Commit

Permalink
Merge pull request microsoft#992 from microsoft/dependabot/nuget/Visu…
Browse files Browse the repository at this point in the history
…alStudioThreadingVersion-17.9.28

Bump VisualStudioThreadingVersion from 17.8.14 to 17.9.28
  • Loading branch information
AArnott authored Mar 5, 2024
2 parents 5efdbec + 82ff275 commit 5f21ac8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<MessagePackVersion>2.5.108</MessagePackVersion>
<MicroBuildVersion>2.0.149</MicroBuildVersion>
<VisualStudioThreadingVersion>17.8.14</VisualStudioThreadingVersion>
<VisualStudioThreadingVersion>17.9.28</VisualStudioThreadingVersion>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.13.10" />
Expand Down
2 changes: 2 additions & 0 deletions src/StreamJsonRpc/JsonRpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,9 @@ public Task Completion
{
get
{
#pragma warning disable VSTHRD003 // Avoid awaiting foreign Tasks
return this.completionSource.Task;
#pragma warning restore VSTHRD003 // Avoid awaiting foreign Tasks
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/StreamJsonRpc/MessageHandlerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ public virtual async Task DisposeAsync()
}

// Wait for completion to actually complete, and re-throw any exceptions.
#pragma warning disable VSTHRD003 // Avoid awaiting foreign Tasks
await this.Completion.ConfigureAwait(false);
#pragma warning restore VSTHRD003 // Avoid awaiting foreign Tasks

this.Dispose(true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ public async ValueTask<object> GetNextValuesAsync(CancellationToken cancellation
if (this.readAheadElements.Completion.IsCompleted)
{
// Rethrow any exceptions.
#pragma warning disable VSTHRD003 // Avoid awaiting foreign Tasks
await this.readAheadElements.Completion.ConfigureAwait(false);
#pragma warning restore VSTHRD003 // Avoid awaiting foreign Tasks
finished = true;
}
}
Expand Down

0 comments on commit 5f21ac8

Please sign in to comment.