protected virtual void SendGridInstantMessageViaXMLRPC(GridInstantMessage im)
        {
            GridInstantMessageDelegate d = SendGridInstantMessageViaXMLRPCAsync;

            if (d != null)
            {
                d.BeginInvoke(im, null, GridInstantMessageCompleted, d);
            }
        }
Exemple #2
0
 private void SendGridInstantMessageViaXMLRPC(GridInstantMessage im, MessageResultNotification result)
 {
     lock (pendingInstantMessages) {
         if (numInstantMessageThreads >= 4)
         {
             GIM gim = new GIM();
             gim.im     = im;
             gim.result = result;
             pendingInstantMessages.Enqueue(gim);
         }
         else
         {
             ++numInstantMessageThreads;
             //m_log.DebugFormat("[SendGridInstantMessageViaXMLRPC]: ++numInstantMessageThreads={0}", numInstantMessageThreads);
             GridInstantMessageDelegate d = SendGridInstantMessageViaXMLRPCAsyncMain;
             d.BeginInvoke(im, result, GridInstantMessageCompleted, d);
         }
     }
 }
        protected virtual void SendGridInstantMessageViaXMLRPC(GridInstantMessage im, MessageResultNotification result)
        {
            GridInstantMessageDelegate d = SendGridInstantMessageViaXMLRPCAsync;

            d.BeginInvoke(im, result, UUID.Zero, GridInstantMessageCompleted, d);
        }