public Command(MethodBase method, ContentHeaderBase header, byte[] body) { Method = method; Header = header; m_body0 = body; m_bodyN = null; }
public MethodBase ModelRpc(MethodBase method, ContentHeaderBase header, byte[] body) { SimpleBlockingRpcContinuation k = new SimpleBlockingRpcContinuation(); TransmitAndEnqueue(new Command(method, header, body), k); return k.GetReply().Method; }
public void ModelSend(MethodBase method, ContentHeaderBase header, byte[] body) { if (method.HasContent) { lock (m_flowSendLock) { m_flowControlBlock.WaitOne(); m_session.Transmit(new Command(method, header, body)); } } else { m_session.Transmit(new Command(method, header, body)); } }
public Command(MethodBase method) : this(method, null, null) { }