protected override async Task OnCloseAsync() { // Close any ReceiveHandler (this is safe if there is none) and the ReceiveLinkManager in parallel. await ReceiveHandlerClose().ConfigureAwait(false); clientLinkManager.Close(); await ReceiveLinkManager.CloseAsync().ConfigureAwait(false); }
public override Task CloseAsync() { _clientLinkManager.Close(); return(SendLinkManager.CloseAsync()); }