public Guid SubscribeToAll(WriteProgressHandler handler)
        {
            var id = Guid.NewGuid();

            _allHandlers[id] = handler;
            return(id);
        }
        public Guid SubscribeToRequest(Guid requestId, WriteProgressHandler handler)
        {
            var handlers = _requestHandlers.GetOrAdd(requestId, new ConcurrentDictionary <Guid, WriteProgressHandler>());
            var id       = Guid.NewGuid();

            handlers[id] = handler;
            return(id);
        }