Exemplo n.º 1
0
        public Task <T> StartWatch <T>(string id, TimeSpan timeout)
        {
            var listener = new ReplyListener <T>(this, id, timeout);

            _listeners[id] = listener;

            return(listener.Task);
        }
Exemplo n.º 2
0
 protected bool Equals(ReplyListener <T> other)
 {
     return(string.Equals(_originalId, other._originalId));
 }