Beispiel #1
0
 protected override async ValueTask OnDisposeAsync()
 {
     if (_multiplexer is not null)
     {
         await _multiplexer.DisposeAsync();
     }
     if (_bridgeConnection is not null)
     {
         await _bridgeConnection.DisposeAsync();
     }
     if (_batchActionDispatcher is not null)
     {
         await _batchActionDispatcher.DisposeAsync();
     }
     _cap?.Dispose();
     _socket?.Dispose();
 }