private void GetSIPCalls(int offset, int count) { if (!m_sipCallsPanelRefreshInProgress) { m_sipCallsPanelRefreshInProgress = true; m_riaContext.SIPDialogues.Clear(); var query = m_riaContext.GetSIPDialoguesQuery().OrderBy(x => x.Inserted).Skip(offset).Take(count); query.IncludeTotalCount = true; m_riaContext.Load <SIPDialogue>(query, LoadBehavior.RefreshCurrent, GetSIPCallsComplete, null); } else { LogActivityMessage_External(MessageLevelsEnum.Warn, "A SIP calls refresh is already in progress."); } }