Ejemplo n.º 1
0
        public IEnumerable <Event> PullEvents(DateTime startDateTime, DateTime stopDateTime, Func <Event, bool> predicate)
        {
            List <Event> retval = new List <Event>();

            var servers = TeamFoundationServerRegistrationUtility.LoadRegisteredTeamFoundationServers();

            foreach (var server in servers)
            {
                var q = new WorkItemEventsQueryServiceInternal(server, null, m_settings[TeamFoundationServerSettingConstants.WorkItemSkipWhenHistoryContains].Value);
                retval.AddRange(q.PullEvents(startDateTime, stopDateTime, predicate));
            }

            return(retval);
        }
Ejemplo n.º 2
0
        public IEnumerable <Event> PullEvents(DateTime startDateTime, DateTime stopDateTime, Func <Event, bool> predicate)
        {
            List <Event> retval = new List <Event>();

            var servers = TeamFoundationServerRegistrationUtility.LoadRegisteredTeamFoundationServers();

            foreach (var server in servers)
            {
                var q = new ChangesetEventsQueryServiceInternal(server, null);
                retval.AddRange(q.PullEvents(startDateTime, stopDateTime, predicate));
            }

            return(retval);
        }