void timer_Elapsed(object sender, ElapsedEventArgs e) { if (ItemsEnqued != null) { ItemsEnqued(_messageDataService.GetAllMessages(_domain)); } if (ItemDequeued != null) { ItemDequeued(_messageDataService.GetRemovedMessages(_domain)); } _messageDataService.MarkNewMessageAsScaned(_domain); }
public ViewResult Index() { var messages = _messageDataService.GetAllMessages(); return(View(messages)); }