private static void SendBack(string connId, string result, Action <float> report) { int rd = 0, rdt = result.Length; while (rd < rdt) { // 128Kb int len = Math.Min(128 * 1024, rdt - rd); ProcessingHub.ReceiveData(connId, result.Substring(rd, len), len, rdt); rd += len; report((float)rd / rdt); } }