/// <summary> /// Raises the <see cref="DataBlockDiscarded"/> event. /// </summary> /// <param name="e">The <see cref="DataBlockEventArgs"/> for the event.</param> protected virtual void OnDataBlockDiscarded(SingleValueEventArgs <IDataBlock> e) { if (DataBlockDiscarded != null) { DataBlockDiscarded(this, e); } }
private void Start() { while (true) { using (var uow = _uowProvider.CreateUnitOfWork()) { var notificationRepository = (NotificationRepository)uow.GetCustomRepository <INotificationRepository>(); var _Notifications = notificationRepository.GetAllNotAsync().ToList(); if (_Notifications.Count != Notifications.Count) { var args = new SingleValueEventArgs() { Value = _Notifications }; ChangeTracker(this, args); Notifications = _Notifications; } } System.Threading.Thread.Sleep(Timeout); } }