public void Clear() { CDNIndex?.Clear(); CDNIndex = null; foreach (var stream in DataStreams) { stream.Value.Dispose(); } DataStreams.Clear(); EncodingHandler?.Clear(); EncodingHandler = null; InstallHandler?.Clear(); InstallHandler = null; LocalIndex?.Clear(); LocalIndex = null; RootHandler?.Clear(); RootHandler = null; DownloadHandler?.Clear(); DownloadHandler = null; }
public void Clear() { CDNIndex?.Clear(); CDNIndex = null; foreach (var stream in DataStreams) { stream.Value.Dispose(); } DataStreams.Clear(); Encoding?.Clear(); Encoding = null; Install?.Clear(); Install = null; LocalIndex?.Clear(); LocalIndex = null; Root?.Clear(); Root = null; Download?.Clear(); Download = null; }
// Token: 0x06002903 RID: 10499 RVA: 0x000BDCB4 File Offset: 0x000BBEB4 internal virtual void RestoreState(object contentObject) { if (contentObject == null) { throw new ArgumentNullException("contentObject"); } if (!this.IsAlive()) { DataStreams journalDataStreams = this._jeGroupState.JournalDataStreams; if (journalDataStreams != null) { journalDataStreams.Load(contentObject); journalDataStreams.Clear(); } } }
internal virtual void RestoreState(object contentObject) { if (contentObject == null) { throw new ArgumentNullException("contentObject"); } if (IsAlive()) { Debug.Assert(_jeGroupState.JournalDataStreams == null); } else { DataStreams jds = _jeGroupState.JournalDataStreams; if (jds != null) { jds.Load(contentObject); // DataStreams not needed anymore. Clear for fresh saving when the next navigation // occurs. jds.Clear(); } } }
public void Clear() { CDNIndex.Clear(); CDNIndex = null; foreach (var stream in DataStreams) { stream.Value.Close(); } DataStreams.Clear(); EncodingHandler.Clear(); EncodingHandler = null; if (InstallHandler != null) { InstallHandler.Clear(); InstallHandler = null; } if (LocalIndex != null) { LocalIndex.Clear(); LocalIndex = null; } RootHandler.Clear(); RootHandler = null; if (DownloadHandler != null) { DownloadHandler.Clear(); DownloadHandler = null; } }