예제 #1
0
 public static LumbricusConfiguration GetConfig()
 {
     if (current == null)
     {
         current = ConfigurationManager.GetSection(LumbricusConfiguration.SECTION_NAME) as LumbricusConfiguration;
     }
     return(current);
 }
예제 #2
0
 public IrcConnection(Server server, LumbricusConfiguration config)
 {
     try {
         Server = server;
         Config = config;
     } catch (Exception e) {
         logger.Error(e);
     }
 }
예제 #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");
     }
 }