コード例 #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");
     }
 }