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(); }
private void _RocEventsFormatsMonitor_Notification(object sender, PostgreSQLListener <RocEventFormats> .PostgreSQLNotification notifyEvent) { ROCEventsNotification(notifyEvent.Notification.operation, notifyEvent.Notification.row); }
private void _rocDataTypesMonitor_Notification(object sender, PostgreSQLListener <RocDataTypes> .PostgreSQLNotification notifyEvent) { ROCDataTypes_Notification(notifyEvent.Notification.operation, notifyEvent.Notification.row); }
private void _appConfigMonitor_Notification(object sender, PostgreSQLListener <FDAConfig> .PostgreSQLNotification notifyEvent) { AppConfigNotification(notifyEvent.Notification.operation, notifyEvent.Notification.row); }