File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed
Applications/CreateChannel Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1414
1515 <PropertyGroup >
1616 <OutputType >Exe</OutputType >
17+ <LangVersion >9.0</LangVersion >
1718 </PropertyGroup >
1819
1920 <ItemGroup >
Original file line number Diff line number Diff line change @@ -614,7 +614,7 @@ public async Task TestCreateChannelWithinAsyncConsumerCallback_GH650()
614614
615615 var tcs = new TaskCompletionSource < bool > ( TaskCreationOptions . RunContinuationsAsynchronously ) ;
616616 using var cts = new CancellationTokenSource ( WaitSpan ) ;
617- await using CancellationTokenRegistration ctr = cts . Token . Register ( ( ) =>
617+ using CancellationTokenRegistration ctr = cts . Token . Register ( ( ) =>
618618 {
619619 tcs . SetCanceled ( ) ;
620620 } ) ;
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ public async Task TestMaxInboundMessageBodySize()
174174 {
175175 var tcs = new TaskCompletionSource < bool > ( TaskCreationOptions . RunContinuationsAsynchronously ) ;
176176 using var cts = new CancellationTokenSource ( WaitSpan ) ;
177- await using CancellationTokenRegistration ctr = cts . Token . Register ( ( ) => tcs . SetCanceled ( ) ) ;
177+ using CancellationTokenRegistration ctr = cts . Token . Register ( ( ) => tcs . SetCanceled ( ) ) ;
178178
179179 const ushort maxMsgSize = 8192 ;
180180
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public async Task TestConnectionBlockedChannelLeak_GH1573()
6565 var connectionUnblockedTcs = new TaskCompletionSource < bool > ( TaskCreationOptions . RunContinuationsAsynchronously ) ;
6666
6767 using var cts = new CancellationTokenSource ( WaitSpan ) ;
68- await using CancellationTokenRegistration ctr = cts . Token . Register ( ( ) =>
68+ using CancellationTokenRegistration ctr = cts . Token . Register ( ( ) =>
6969 {
7070 connectionBlockedTcs . TrySetCanceled ( ) ;
7171 connectionUnblockedTcs . TrySetCanceled ( ) ;
You can’t perform that action at this time.
0 commit comments