예제 #1
0
        //
        private void BatchComplete()
        {
            Mage.EventManager.Emit("io.response", null);

            lock ((object)this)
            {
                sendingBatch = null;

                // Check if next queued batch should be sent as well
                if (currentBatch.BatchItems.Count > 0)
                {
                    SendBatch();
                }
            }
        }
예제 #2
0
 //
 public CommandCenter(CommandTransportType transportType = CommandTransportType.HTTP)
 {
     currentBatch = new CommandBatch(nextQueryId++);
     SetTransport(transportType);
 }