Beispiel #1
0
 /// <summary>
 /// </summary>
 public void UnloadPlugins()
 {
     foreach (var pluginInstance in Loaded.Cast <PluginInstance>()
              .Where(pluginInstance => pluginInstance.Instance != null))
     {
         pluginInstance.Instance.Dispose();
     }
     Loaded.Clear();
 }
Beispiel #2
0
        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();
 }
Beispiel #4
0
 public void Clear()
 {
     Loaded.Clear();
     FlaggedForDeletion = true;
 }