protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    registry.Clear();
                    registry = null;
                }

                disposedValue = true;
            }
        }
 public ClientRequestDispatcher(CoapClientRequestRegistry registry)
 {
     this.registry = registry;
 }