internal static void ProcessEventSources(OnDemandProcessingContext odpContext, IScope containingScope, List <IInScopeEventSource> inScopeEventSources)
 {
     if (inScopeEventSources == null || inScopeEventSources.Count == 0)
     {
         return;
     }
     foreach (IInScopeEventSource inScopeEventSource in inScopeEventSources)
     {
         if (inScopeEventSource.UserSort == null)
         {
             continue;
         }
         Microsoft.ReportingServices.ReportIntermediateFormat.SortFilterEventInfo sortFilterEventInfo = new Microsoft.ReportingServices.ReportIntermediateFormat.SortFilterEventInfo(inScopeEventSource);
         sortFilterEventInfo.EventSourceScopeInfo = odpContext.GetScopeValues(inScopeEventSource.ContainingScopes, containingScope);
         if (odpContext.TopLevelContext.NewSortFilterEventInfo == null)
         {
             odpContext.TopLevelContext.NewSortFilterEventInfo = new SortFilterEventInfoMap();
         }
         string text = InstancePathItem.GenerateUniqueNameString(inScopeEventSource.ID, inScopeEventSource.InstancePath);
         odpContext.TopLevelContext.NewSortFilterEventInfo.Add(text, sortFilterEventInfo);
         List <IReference <RuntimeSortFilterEventInfo> > list = odpContext.RuntimeSortFilterInfo;
         if (list == null && odpContext.SubReportUniqueName == null)
         {
             list = odpContext.TopLevelContext.ReportRuntimeUserSortFilterInfo;
         }
         if (list == null)
         {
             continue;
         }
         for (int i = 0; i < list.Count; i++)
         {
             IReference <RuntimeSortFilterEventInfo> reference = list[i];
             using (reference.PinValue())
             {
                 reference.Value().MatchEventSource(inScopeEventSource, text, containingScope, odpContext);
             }
         }
     }
 }
 internal bool Remove(int id, List <InstancePathItem> instancePath)
 {
     return(Remove(InstancePathItem.GenerateUniqueNameString(id, instancePath)));
 }
 public bool Remove(int id, List <InstancePathItem> instancePath)
 {
     return(this.Remove(InstancePathItem.GenerateUniqueNameString(id, instancePath)));
 }