SIPSorcery.DialPlanWizard.GetCNAMs C# (CSharp) Method

GetCNAMs() private method

private GetCNAMs ( int offset, int count ) : void
offset int
count int
return void
        private void GetCNAMs(int offset, int count)
        {
            if (!m_cnamPanelRefreshInProgress)
            {
                m_cnamPanelRefreshInProgress = true;

                DisableSelectionChanges();
                m_riaContext.SIPDialplanLookups.Clear();

                var cnamsQuery = m_riaContext.GetSIPDialplanLookupsQuery().Where(x => x.DialPlanID == m_dialPlan.ID && x.LookupType == (int)SIPDialPlanLookupTypes.CNAM).OrderBy(x => x.LookupKey).Skip(offset).Take(count);
                cnamsQuery.IncludeTotalCount = true;
                m_riaContext.Load<SIPDialplanLookup>(cnamsQuery, LoadBehavior.RefreshCurrent, CNAMsLoaded, null);
            }
        }