Skip to content

Commit ec3b1b7

Browse files
committed
* Add some TODOs
1 parent 439d434 commit ec3b1b7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

RabbitMQ.AMQP.Client/Impl/AmqpConnection.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ public IConsumerBuilder ConsumerBuilder()
7979
return new AmqpConsumerBuilder(this);
8080
}
8181

82+
// TODO cancellation token
8283
public override async Task OpenAsync()
8384
{
84-
await OpenConnectionAsync()
85+
// TODO cancellation token
86+
await OpenConnectionAsync(CancellationToken.None)
8587
.ConfigureAwait(false);
8688
await base.OpenAsync()
8789
.ConfigureAwait(false);
@@ -198,8 +200,7 @@ private AmqpConnection(IConnectionSettings connectionSettings)
198200
new AmqpManagement(new AmqpManagementParameters(this).TopologyListener(_recordingTopologyListener));
199201
}
200202

201-
// TODO cancellation token
202-
private async Task OpenConnectionAsync()
203+
private async Task OpenConnectionAsync(CancellationToken cancellationToken)
203204
{
204205
await _semaphoreOpen.WaitAsync()
205206
.ConfigureAwait(false);
@@ -396,7 +397,8 @@ void DoClose(Error? argError = null)
396397
await Task.Delay(TimeSpan.FromMilliseconds(nextDelayMs))
397398
.ConfigureAwait(false);
398399

399-
await OpenConnectionAsync()
400+
// TODO cancellation token
401+
await OpenConnectionAsync(CancellationToken.None)
400402
.ConfigureAwait(false);
401403

402404
connected = true;

0 commit comments

Comments
 (0)