示例#1
0
 public void InitializeBehavior(AbstractBehavior b)
 {
     try
     {
         b.Initialize(callbackHandler.BufferEvents, extensionAssemblies, logger);
     }
     catch (Exception e)
     {
         logger.Exception("Error when initializing behavior " + b.Title + ". The behavior will not be applied.", e);
     }
 }
示例#2
0
 public JeanService()
 {
     logger = new EventLogLogger();
     logger.Initialize("Jean");
     try
     {
         loadingError = false;
         startupError = true;
         LoadSettings();
         callbackSemaphore = new Semaphore(0, 1);
         startSemaphore    = new Semaphore(0, 1);
         processingThread  = new Thread(this.EventProcessingLoop);
         processingThread.Start();
     }
     catch (Exception e)
     {
         loadingError = true;
         logger.Exception("Jean could not be loaded.", e);
     }
     logger.Information("Jean was loaded");
 }