Exemplo n.º 1
0
            protected virtual void OnNotificationRecieved(RefreshMessage e)
            {
                RefreshNotificationRecievedEventHandler handler = NotificationRecieved;

                if (handler != null)
                {
                    handler(this, e);
                }                                                          //-- Invokes the handler (in our actual worker role)
            }
Exemplo n.º 2
0
 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);
         }
     }
 }
Exemplo n.º 3
0
 private void OnRefresh(RefreshMessage obj)
 {
     LoadData();
 }
 private void RefreshMethod(RefreshMessage obj)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 5
0
 public void RefreshCacheIndex(RefreshMessage sender)
 {
     this.OnNotificationRecieved(sender);
 }
Exemplo n.º 6
0
 void ServiceHost_RefreshNotificationRecieved(object sender, RefreshMessage e)
 {
     MailMan.SendAppEvent(TraceCode.AppBuildCache, "Receive refresh request notification, refreshing cache server", "*****@*****.**", Guid.Empty, "*****@*****.**", false);
     PopuluteCfCacheIndex();
 }