forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consistent ConfigureAwait on Loopback, RemoteExecutor.DisposeAsync (d…
…otnet#102699) * Add ConfigureAwait(false) to various place * Add RemoteExecutor.DisposeAsync and use it on System.Net.Mail * Add RemoteExecutor.DisposeAsync and use it on System.Net.Http * Add RemoteExecutor.DisposeAsync and use it on System.Net.Primitives * Add RemoteExecutor.DisposeAsync and use it on System.Net.Quic * Add RemoteExecutor.DisposeAsync and use it on System.Net.Requests * Add RemoteExecutor.DisposeAsync and use it on System.Net.Security * Add RemoteExecutor.DisposeAsync and use it on System.Net.Sockets * Add RemoteExecutor.DisposeAsync and use it on Common System.Net
- Loading branch information
Showing
55 changed files
with
437 additions
and
384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/libraries/Common/tests/System/Net/RemoteExecutorExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Threading.Tasks; | ||
using Microsoft.DotNet.RemoteExecutor; | ||
|
||
namespace Microsoft.DotNet.RemoteExecutor; | ||
|
||
internal static class RemoteExecutorExtensions | ||
{ | ||
public static async ValueTask DisposeAsync(this RemoteInvokeHandle handle) | ||
{ | ||
await Task.Run(handle.Dispose); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.