Пример #1
0
 private static void LoadPlugins()
 {
     try
     {
         PlugInLoader.LoadExternalProcessors(Logger);
     }
     catch (System.Exception ex)
     {
         Logger.Warning("Failed to load external job processors {0}", ex);
     }
 }
Пример #2
0
        private static void LoadPlugins(ILogger logger)
        {
            Guard.Against.Null(logger, nameof(logger));

            try
            {
                PlugInLoader.LoadExternalProcessors(logger);
            }
            catch (System.Exception ex)
            {
                logger.Log(Microsoft.Extensions.Logging.LogLevel.Error, ex, "Error loading plugins.");
            }
        }