/// <summary> /// </summary> public void UnloadPlugins() { foreach (var pluginInstance in Loaded.Cast <PluginInstance>() .Where(pluginInstance => pluginInstance.Instance != null)) { pluginInstance.Instance.Dispose(); } Loaded.Clear(); }
public Task Initialize(NasaCollection <NasaMediaEntry> collection) { // Clear the loaded list and set the pre count to zero Loaded.Clear(); _loadedPreCount = 0; _collection = collection; _items = collection.Entries .SelectMany(x => x.Items) .Where(_predicate); return(Task.CompletedTask); }
public void Reset() { LoadCounter = 0; SaveCounter = 0; Loaded.Clear(); }
public void Clear() { Loaded.Clear(); FlaggedForDeletion = true; }