Пример #1
0
        public Task <T> StartWatch <T>(Guid id, TimeSpan timeout)
        {
            var listener = new ReplyListener <T>(this, id, timeout);

            _listeners[id] = listener;

            return(listener.Task);
        }
Пример #2
0
 protected bool Equals(ReplyListener <T> other)
 {
     return(string.Equals(_originalId, other._originalId));
 }