// Token: 0x06000903 RID: 2307 RVA: 0x00023B28 File Offset: 0x00021D28 internal void Register(PersistentConditionalRegistration persistentRegistration) { if (this.cache.TryAddAbsolute(persistentRegistration.Cookie, persistentRegistration, DateTime.MaxValue)) { this.UpdateActiveProperties(persistentRegistration, true); } }
internal void HydratePersistentHandlers() { if (this.Data == null || this.hydrated) { return; } foreach (XNode xnode in this.Data.DescendantNodes()) { XElement xelement = xnode as XElement; if (xelement != null) { try { PersistentConditionalRegistration persistentRegistration = PersistentConditionalRegistration.CreateFromXml(xelement); ConditionalRegistrationCache.Singleton.Register(persistentRegistration); } catch (Exception exception) { ConditionalRegistrationLog.LogFailedHydration(xelement, exception); } } } this.hydrated = true; }