protected void CleanupOldSessions() { foreach (string fileName in this.IsoStore.GetFileNames("Telerik*.json")) { try { if (this.Load(SessionName.FromExisting(fileName)).IsExpired()) { this.IsoStore.DeleteFile(fileName); } } catch { } } }
public Session SetName(SessionName name) { this._name = name; return(this); }