Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 KB | None | 0 0
  1.         public void Initialize()
  2.         {
  3.             try
  4.             {
  5.                 Tools.Log.Info("Initializing Readers Manager...");
  6.  
  7.                 var aggregateCatalog = new AggregateCatalog();
  8.                 aggregateCatalog.AddStdDirectories(PLUGINS_READERS_DIRECTORY);
  9.  
  10.                 this._pluginsContainer = new CompositionContainer(aggregateCatalog);
  11.                 this._pluginsContainer.ComposeParts(this);
  12.  
  13.                 RealReader.InitializeTransponderFiltering();
  14.  
  15.                 Tools.Log.Info("Initializing Readers Manager... done");
  16.             }
  17.             catch(Exception ex)
  18.             {
  19.                 BaseTools.LogException(ex, LogLevel.Error, Tools.Log);
  20.                 BaseTools.LogException(ex.GetBaseException(), LogLevel.Error, Tools.Log);
  21.                 throw;
  22.             }
  23.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement