Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/12/15 14:59:54 (9 years ago)
Author:
dglaser
Message:

#2394: Improved PluginManager and updated hive status monitor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Services.WebApp/3.3/Plugin.cs

    r12428 r12435  
    1 using System;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using System;
    223using System.Collections.Concurrent;
    324using System.Collections.Generic;
     
    526using System.Linq;
    627using System.Reflection;
    7 using System.Text;
    828using System.Web.Http;
    929using System.Web.Http.Controllers;
     
    5676        AssemblyName = Path.GetFileName(assemblyPath);
    5777      }
    58       catch (ReflectionTypeLoadException ex) {
    59         StringBuilder sb = new StringBuilder();
    60         foreach (Exception exSub in ex.LoaderExceptions) {
    61           sb.AppendLine(exSub.Message);
    62           FileNotFoundException exFileNotFound = exSub as FileNotFoundException;
    63           if (exFileNotFound != null) {
    64             if (!string.IsNullOrEmpty(exFileNotFound.FusionLog)) {
    65               sb.AppendLine("Fusion Log:");
    66               sb.AppendLine(exFileNotFound.FusionLog);
    67             }
    68           }
    69           sb.AppendLine();
    70         }
    71         AssemblyName = "Error loading assembly: " + sb.ToString();
     78      catch (Exception) {
     79        AssemblyName = "Error loading assembly";
    7280        Controllers.Clear();
    7381      }
Note: See TracChangeset for help on using the changeset viewer.