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