public ResponseAwaiter <TResponse> Register() { var awaiter = new ResponseAwaiter <TResponse>(); this._responseAwaiters.TryAdd(awaiter.CorrelationId, awaiter); return(awaiter); }
public void Remove(ResponseAwaiter <TResponse> awaiter) { this._responseAwaiters.TryRemove(awaiter.CorrelationId, out ResponseAwaiter <TResponse> _); }