public WithinSentRequestImpl(Inbox inbox, TimeSpan timeout) { _inbox = inbox; _timeout = timeout; _receives = new PendingReceiveList(); }
public ReceiveLoopImpl(Inbox inbox) { _inbox = inbox; _pending = new PendingReceiveList(); _receivers = new List <Func <PendingReceive> > { () => _inbox.Receive <Request <Exit> >(HandleExit), () => _inbox.Receive <Kill>(message => CancelPendingReceives()), }; }