Ejemplo n.º 1
0
 public static LumbricusConfiguration GetConfig()
 {
     if (current == null)
     {
         current = ConfigurationManager.GetSection(LumbricusConfiguration.SECTION_NAME) as LumbricusConfiguration;
     }
     return(current);
 }
Ejemplo n.º 2
0
 public IrcConnection(Server server, LumbricusConfiguration config)
 {
     try {
         Server = server;
         Config = config;
     } catch (Exception e) {
         logger.Error(e);
     }
 }
Ejemplo n.º 3
0
 public static void Initialise(LumbricusConfiguration config)
 {
     if (db == null)
     {
         logger.Info("Initialising Lumbricus database context");
         db = new LumbricusContext();
     }
     else
     {
         logger.Info("Skipping database initialisation; already done");
     }
 }