public async Task CloseAsync() { if (info.IsDurable) { if (receiverLink != null) { await receiverLink.DetachAsync().AwaitRunContinuationAsync(); } } else { if (receiverLink != null) { await receiverLink.CloseAsync().AwaitRunContinuationAsync(); } } }