コード例 #1
0
        protected internal RPCWait ReplyRPC(IReactorEvent ev, long replyID)
        {
            var data = new FullReactorEvent(ev, Reference, GetNextEventID(), replyID);
            var wait = new RPCWait(data, EventSource);

            pendingRPCWaits.Add(data.EventID, wait);

            EventSource.Send(data.Source, data.Event, data.EventID, replyID);
            return(wait);
        }
コード例 #2
0
        protected internal RPCWait RPC(IReactorReference dest, IReactorEvent ev)
        {
            var data = new FullReactorEvent(ev, Reference, GetNextEventID(), 0);
            var wait = new RPCWait(data, dest);

            pendingRPCWaits.Add(data.EventID, wait);

            dest.Send(data.Source, data.Event, data.EventID, data.ReplyID);

            return(wait);
        }