Beispiel #1
0
        public FDASystemManagerPG(string DBInstance, string systemDBName, string login, string pass, string version, Guid executionID) : base(DBInstance, systemDBName, login, pass, version, executionID)
        {
            // ************ PostgreSQL version *******************
            _appConfigMonitor = new PostgreSQLListener <FDAConfig>(SystemDBConnectionString, "FDAConfig");
            _appConfigMonitor.Notification += _appConfigMonitor_Notification;

            // set up monitoring of RocDataTypes tables (PostgreSQL version)
            _rocDataTypesMonitor = new PostgreSQLListener <RocDataTypes>(SystemDBConnectionString, "rocdatatypes");
            _rocDataTypesMonitor.Notification += _rocDataTypesMonitor_Notification;

            // set up monitoring of the RocEventFormats table (PostgreSQL version)
            _RocEventsFormatsMonitor = new PostgreSQLListener <RocEventFormats>(SystemDBConnectionString, "RocEventFormats");
            _RocEventsFormatsMonitor.Notification += _RocEventsFormatsMonitor_Notification;

            StartListening();
        }
Beispiel #2
0
 private void _RocEventsFormatsMonitor_Notification(object sender, PostgreSQLListener <RocEventFormats> .PostgreSQLNotification notifyEvent)
 {
     ROCEventsNotification(notifyEvent.Notification.operation, notifyEvent.Notification.row);
 }
Beispiel #3
0
 private void _rocDataTypesMonitor_Notification(object sender, PostgreSQLListener <RocDataTypes> .PostgreSQLNotification notifyEvent)
 {
     ROCDataTypes_Notification(notifyEvent.Notification.operation, notifyEvent.Notification.row);
 }
Beispiel #4
0
 private void _appConfigMonitor_Notification(object sender, PostgreSQLListener <FDAConfig> .PostgreSQLNotification notifyEvent)
 {
     AppConfigNotification(notifyEvent.Notification.operation, notifyEvent.Notification.row);
 }