Changeset 564


Ignore:
Timestamp:
11/14/2008 10:33:06 AM (6 years ago)
Author:
lowjoel
Message:

Two-step plugin loading.

Location:
branches/eraser6/Manager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Manager/Manager.cs

    r561 r564  
    4242            ErasureMethodManager = new ErasureMethodManager(); 
    4343            Host = new Plugin.DefaultHost(); 
     44            Host.Load(); 
    4445        } 
    4546 
  • branches/eraser6/Manager/Plugins.cs

    r558 r564  
    3333    /// program. 
    3434    /// </summary> 
     35    /// <remarks>Remember to call Load to load the plugins into memory, otherwise 
     36    /// they will never be loaded.</remarks> 
    3537    public abstract class Host : IDisposable 
    3638    { 
     
    5052            get; 
    5153        } 
     54 
     55        /// <summary> 
     56        /// Loads all plugins into memory. 
     57        /// </summary> 
     58        public abstract void Load(); 
    5259 
    5360        /// <summary> 
     
    94101        /// </summary> 
    95102        public DefaultHost() 
     103        { 
     104        } 
     105 
     106        public override void Load() 
    96107        { 
    97108            AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(AssemblyResolve); 
Note: See TracChangeset for help on using the changeset viewer.