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; }
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; }