示例#1
0
        public WithinSentRequestImpl(Inbox inbox, TimeSpan timeout)
        {
            _inbox   = inbox;
            _timeout = timeout;

            _receives = new PendingReceiveList();
        }
示例#2
0
        public ReceiveLoopImpl(Inbox inbox)
        {
            _inbox = inbox;

            _pending = new PendingReceiveList();

            _receivers = new List <Func <PendingReceive> >
            {
                () => _inbox.Receive <Request <Exit> >(HandleExit),
                () => _inbox.Receive <Kill>(message => CancelPendingReceives()),
            };
        }