Пример #1
0
        internal static void ForeachQueryResult(QueryResult queryResult, int fetchCount, ElcMailboxHelper.RowInvokeDelegate rowInvoke)
        {
            bool flag = false;

            while (!flag)
            {
                object[][] rows = queryResult.GetRows(fetchCount);
                if (rows == null)
                {
                    break;
                }
                if (rows.Length <= 0)
                {
                    return;
                }
                for (int i = 0; i < rows.Length; i++)
                {
                    rowInvoke(rows[i], ref flag);
                    if (flag)
                    {
                        return;
                    }
                }
            }
        }
Пример #2
0
 internal static void ForeachQueryResult(QueryResult queryResult, ElcMailboxHelper.RowInvokeDelegate rowInvoke)
 {
     ElcMailboxHelper.ForeachQueryResult(queryResult, 100, rowInvoke);
 }