Skip to content

Commit 213f0da

Browse files
committed
Rename ClosedViaPeer to ClosedViaPeerAsync
Rename `OnShutdown` to `OnShutdownAsync`
1 parent 275134e commit 213f0da

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ protected async Task<bool> HandleConnectionCloseAsync(IncomingCommand cmd, Cance
715715
var reason = new ShutdownEventArgs(ShutdownInitiator.Peer, method._replyCode, method._replyText, method._classId, method._methodId);
716716
try
717717
{
718-
await Session.Connection.ClosedViaPeer(reason)
718+
await Session.Connection.ClosedViaPeerAsync(reason)
719719
.ConfigureAwait(false);
720720

721721
var replyMethod = new ConnectionCloseOk();

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private async Task HandleMainLoopExceptionAsync(ShutdownEventArgs reason)
218218

219219
_channel0.MaybeSetConnectionStartException(reason.Exception!);
220220

221-
await OnShutdown(reason).ConfigureAwait(false);
221+
await OnShutdownAsync(reason).ConfigureAwait(false);
222222
LogCloseError($"unexpected connection closure: {message}", reason.Exception!);
223223
}
224224

@@ -227,7 +227,7 @@ private async Task HardProtocolExceptionHandlerAsync(HardProtocolException hpe,
227227
{
228228
if (SetCloseReason(hpe.ShutdownReason))
229229
{
230-
await OnShutdown(hpe.ShutdownReason).ConfigureAwait(false);
230+
await OnShutdownAsync(hpe.ShutdownReason).ConfigureAwait(false);
231231
await _session0.SetSessionClosingAsync(false)
232232
.ConfigureAwait(false);
233233
try

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ internal async Task CloseAsync(ShutdownEventArgs reason, bool abort, TimeSpan ti
328328
{
329329
cancellationToken.ThrowIfCancellationRequested();
330330

331-
await OnShutdown(reason)
331+
await OnShutdownAsync(reason)
332332
.ConfigureAwait(false);
333333
await _session0.SetSessionClosingAsync(false)
334334
.ConfigureAwait(false);
@@ -409,7 +409,7 @@ await _frameHandler.CloseAsync(cancellationToken)
409409
}
410410
}
411411

412-
internal async Task ClosedViaPeer(ShutdownEventArgs reason)
412+
internal async Task ClosedViaPeerAsync(ShutdownEventArgs reason)
413413
{
414414
if (false == SetCloseReason(reason))
415415
{
@@ -420,7 +420,7 @@ internal async Task ClosedViaPeer(ShutdownEventArgs reason)
420420
// We are quiescing, but still allow for server-close
421421
}
422422

423-
await OnShutdown(reason)
423+
await OnShutdownAsync(reason)
424424
.ConfigureAwait(false);
425425
await _session0.SetSessionClosingAsync(true)
426426
.ConfigureAwait(false);
@@ -441,7 +441,7 @@ private async Task FinishCloseAsync(CancellationToken cancellationToken)
441441
}
442442

443443
///<summary>Broadcasts notification of the final shutdown of the connection.</summary>
444-
private Task OnShutdown(ShutdownEventArgs reason)
444+
private Task OnShutdownAsync(ShutdownEventArgs reason)
445445
{
446446
ThrowIfDisposed();
447447
return _connectionShutdownAsyncWrapper.InvokeAsync(this, reason);

0 commit comments

Comments
 (0)