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); }
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;