Esempio n. 1
0
        public void CallCommand(OuterCommandCall call)
        {
            if (call.WasPerformed)
            {
                throw new InvalidOperationException("Call was already performed");
            }
            Contract.EndContractBlock();

            m_calledCommands.Add(call.CallId, call);
            m_encodeTransform.Post(call);
        }
Esempio n. 2
0
        public void CallCommandBufferReply(OuterCommandCall call)
        {
            if (call.WasPerformed)
            {
                throw new InvalidOperationException("Call was already performed");
            }
            Contract.EndContractBlock();

            call.CommandPerformed += (sender, reply) =>
                                     m_repliesBuffer.Post((OuterCommandCall)sender);
            CallCommand(call);
        }
 public CommandCalledEventArgs(OuterCommandCall call) => Call = call;