Exemplo n.º 1
0
        protected virtual void TimeCheck(DateTime now)
        {
            auth = auth.CheckStale();

            if (checkedReplace)
            {
                foreach (var svc in new List <ServiceInfo> (services.Values))
                {
                    if (expireTimes [svc] < now)
                    {
                        expireTimes.Remove(svc);
                        servicesByID.Remove(svc.DeduplicationKey);
                        services.Remove(svc.Source);
                    }
                }
            }
        }
Exemplo n.º 2
0
        protected virtual void TimeCheck(DateTime now)
        {
            auth = auth.CheckStale ();

            if (checkedReplace) {
                foreach (var svc in new List<ServiceInfo> (services.Values)) {
                    if (expireTimes [svc] < now) {
                        expireTimes.Remove (svc);
                        servicesByID.Remove (svc.DeduplicationKey);
                        services.Remove (svc.Source);
                    }
                }
            }
        }