This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -311,12 +311,15 @@ public static ConfiguredTaskAwaitable ConfigAwait(this Task task) =>
311
311
public static ConfiguredTaskAwaitable < T > ConfigAwait < T > ( this Task < T > task ) =>
312
312
task . ConfigureAwait ( ContinueOnCapturedContext ) ;
313
313
314
+ #if NETSTANDARD || NETCORE2_1
314
315
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
315
316
public static ConfiguredValueTaskAwaitable ConfigAwait ( this ValueTask task ) =>
316
317
task . ConfigureAwait ( ContinueOnCapturedContext ) ;
317
318
318
319
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
319
320
public static ConfiguredValueTaskAwaitable < T > ConfigAwait < T > ( this ValueTask < T > task ) =>
320
321
task . ConfigureAwait ( ContinueOnCapturedContext ) ;
322
+ #endif
323
+
321
324
}
322
325
}
Original file line number Diff line number Diff line change 21
21
</ItemGroup >
22
22
<ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0' " >
23
23
<PackageReference Include =" System.Runtime" Version =" 4.3.1" />
24
+ <PackageReference Include =" Microsoft.Bcl.AsyncInterfaces" Version =" 1.1.0" />
24
25
</ItemGroup >
25
26
<ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp2.1' " >
26
27
<PackageReference Include =" System.Runtime" Version =" 4.3.1" />
Original file line number Diff line number Diff line change 23
23
</ItemGroup >
24
24
<ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0' " >
25
25
<PackageReference Include =" System.Runtime" Version =" 4.3.1" />
26
+ <PackageReference Include =" Microsoft.Bcl.AsyncInterfaces" Version =" 1.1.0" />
26
27
</ItemGroup >
27
28
<ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp2.1' " >
28
29
<PackageReference Include =" System.Runtime" Version =" 4.3.1" />
You can’t perform that action at this time.
0 commit comments