Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5652


Ignore:
Timestamp:
03/10/11 10:06:55 (14 years ago)
Author:
cneumuel
Message:

#1431

  • changed visibility in PluginManager and ApplicationDescription
  • added exe-files as possible plugin-files
Location:
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Manager
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Manager/ApplicationDescription.cs

    r5445 r5652  
    2727  /// </summary>
    2828  [Serializable]
    29   internal sealed class ApplicationDescription : IApplicationDescription {
     29  public sealed class ApplicationDescription : IApplicationDescription {
    3030    private string name;
    3131
  • trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Manager/PluginManager.cs

    r5523 r5652  
    5454    /// Gets all installed applications.
    5555    /// </summary>
    56     internal IEnumerable<ApplicationDescription> Applications {
     56    public IEnumerable<ApplicationDescription> Applications {
    5757      get { return applications; }
    5858    }
     
    110110    /// </summary>
    111111    /// <param name="appInfo">application to run</param>
    112     internal void Run(ApplicationDescription appInfo) {
     112    public void Run(ApplicationDescription appInfo) {
    113113      if (!initialized) throw new InvalidOperationException("PluginManager is not initialized. DiscoverAndCheckPlugins() must be called before Run()");
    114114      // create a separate AppDomain for the application
  • trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Manager/PluginValidator.cs

    r5631 r5652  
    179179      }
    180180      // try to load each .dll file in the plugin directory into the reflection only context
    181       foreach (string filename in Directory.GetFiles(baseDir, "*.dll")) {
     181      foreach (string filename in Directory.GetFiles(baseDir, "*.dll").Union(Directory.GetFiles(baseDir, "*.exe"))) {
    182182        try {
    183183          Assembly asm = Assembly.ReflectionOnlyLoadFrom(filename);
Note: See TracChangeset for help on using the changeset viewer.