コード例 #1
0
 public Command(MethodBase method, ContentHeaderBase header, byte[] body)
 {
     Method = method;
     Header = header;
     m_body0 = body;
     m_bodyN = null;
 }
コード例 #2
0
 public MethodBase ModelRpc(MethodBase method, ContentHeaderBase header, byte[] body)
 {
     SimpleBlockingRpcContinuation k = new SimpleBlockingRpcContinuation();
     TransmitAndEnqueue(new Command(method, header, body), k);
     return k.GetReply().Method;
 }
コード例 #3
0
 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));
     }
 }
コード例 #4
0
 public Command(MethodBase method)
     : this(method, null, null)
 {
 }