public Parser() { InitializeComponent(); CassandraDataPointsRepository.Initialise(); this.userRepository = new SQLUserRepository(); this.dataPointsRepository = CassandraDataPointsRepository.Instance; if (!EventLog.Exists(ConfigurationManager.AppSettings["LogEntryName"])) { EventLog.CreateEventSource( ConfigurationManager.AppSettings["LogSourceName"], ConfigurationManager.AppSettings["LogEntryName"]); } }
/// <summary> /// Use this method to initialise any database connections /// </summary> public static void Initialise() { CassandraDataPointsRepository.Initialise(); }