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"]);
            }
        }
예제 #2
0
 /// <summary>
 /// Use this method to initialise any database connections
 /// </summary>
 public static void Initialise()
 {
     CassandraDataPointsRepository.Initialise();
 }