Esempio n. 1
0
 private PushMessaging(Action <IEnumerable <string> > dispatcher)
 {
     _dispatcher                     = dispatcher;
     _connString                     = Constants.CONNECTIONSTRING;
     _selectQuery                    = Constants.DBTABLE_MESSAGE_SELECT_ALL;
     _newMessageNotifier             = new NewMessageNotifier(_connString, _selectQuery);
     _newMessageNotifier.NewMessage += NewMessageRecieved;
 }
Esempio n. 2
0
 private PushMessaging(Action<IEnumerable<string>> dispatcher)
 {
     _dispatcher = dispatcher;
     _connString = Constants.CONNECTIONSTRING;
     _selectQuery = Constants.DBTABLE_MESSAGE_SELECT_ALL;
     _newMessageNotifier = new NewMessageNotifier(_connString, _selectQuery);
     _newMessageNotifier.NewMessage += NewMessageRecieved;
 }