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