protected virtual void OnNotificationRecieved(RefreshMessage e) { RefreshNotificationRecievedEventHandler handler = NotificationRecieved; if (handler != null) { handler(this, e); } //-- Invokes the handler (in our actual worker role) }
public async void RefreshDataAsync(RefreshMessage refreshDataMessage) { if (GetType().Name.Equals(refreshDataMessage.ViewModelName)) { Deposites.Clear(); var deposites = (await _depositeRepository.GetAll()).Where(d => d.Client.User.Id.Equals(_authenticator.GetCurrentUser().Id)).OrderBy(d => d.StartDate).Reverse(); foreach (var deposite in deposites) { Deposites.Add(deposite); } } }
private void OnRefresh(RefreshMessage obj) { LoadData(); }
private void RefreshMethod(RefreshMessage obj) { throw new NotImplementedException(); }
public void RefreshCacheIndex(RefreshMessage sender) { this.OnNotificationRecieved(sender); }
void ServiceHost_RefreshNotificationRecieved(object sender, RefreshMessage e) { MailMan.SendAppEvent(TraceCode.AppBuildCache, "Receive refresh request notification, refreshing cache server", "*****@*****.**", Guid.Empty, "*****@*****.**", false); PopuluteCfCacheIndex(); }