Skip to content

Commit 7337fad

Browse files
committed
Rename three internal async methods to use Async suffix.
1 parent 830b1e4 commit 7337fad

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

projects/RabbitMQ.Client/client/framing/Channel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected override Task<bool> DispatchCommandAsync(IncomingCommand cmd, Cancella
118118
case ProtocolCommandId.ConnectionBlocked:
119119
{
120120
// Note: always returns true
121-
return HandleConnectionBlocked(cmd, cancellationToken);
121+
return HandleConnectionBlockedAsync(cmd, cancellationToken);
122122
}
123123
case ProtocolCommandId.ConnectionClose:
124124
{
@@ -143,7 +143,7 @@ protected override Task<bool> DispatchCommandAsync(IncomingCommand cmd, Cancella
143143
case ProtocolCommandId.ConnectionUnblocked:
144144
{
145145
// Note: always returns true
146-
return HandleConnectionUnblocked(cancellationToken);
146+
return HandleConnectionUnblockedAsync(cancellationToken);
147147
}
148148
default:
149149
{

projects/RabbitMQ.Client/client/impl/ChannelBase.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -701,10 +701,10 @@ await ModelSendAsync(method, cancellationToken).
701701
return true;
702702
}
703703

704-
protected async Task<bool> HandleConnectionBlocked(IncomingCommand cmd, CancellationToken cancellationToken)
704+
protected async Task<bool> HandleConnectionBlockedAsync(IncomingCommand cmd, CancellationToken cancellationToken)
705705
{
706706
string reason = new ConnectionBlocked(cmd.MethodSpan)._reason;
707-
await Session.Connection.HandleConnectionBlocked(reason)
707+
await Session.Connection.HandleConnectionBlockedAsync(reason)
708708
.ConfigureAwait(false);
709709
return true;
710710
}
@@ -780,9 +780,9 @@ await k.HandleCommandAsync(cmd)
780780
return true;
781781
}
782782

783-
protected async Task<bool> HandleConnectionUnblocked(CancellationToken cancellationToken)
783+
protected async Task<bool> HandleConnectionUnblockedAsync(CancellationToken cancellationToken)
784784
{
785-
await Session.Connection.HandleConnectionUnblocked()
785+
await Session.Connection.HandleConnectionUnblockedAsync()
786786
.ConfigureAwait(false);
787787
return true;
788788
}

projects/RabbitMQ.Client/client/impl/Connection.Commands.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ internal void NotifyReceivedCloseOk()
5454
_closed = true;
5555
}
5656

57-
internal Task HandleConnectionBlocked(string reason)
57+
internal Task HandleConnectionBlockedAsync(string reason)
5858
{
5959
if (!_connectionBlockedWrapper.IsEmpty)
6060
{
@@ -63,7 +63,7 @@ internal Task HandleConnectionBlocked(string reason)
6363
return Task.CompletedTask;
6464
}
6565

66-
internal Task HandleConnectionUnblocked()
66+
internal Task HandleConnectionUnblockedAsync()
6767
{
6868
if (!_connectionUnblockedWrapper.IsEmpty)
6969
{

0 commit comments

Comments
 (0)