Пример #1
0
        private async void NotifyIdEventUpdate(IdMessage msg)
        {
            CacheIdEvents(msg);
            await ProcessIdEvents(msg);

            RaisePropertyChanged("IdEvent");
            await Task.Run(() =>
            {
                foreach (var p in Plugins)
                {
                    p.IdEventUpdate(msg.DeepCopy(), PluginMonitoringToken);
                }
            });
        }
Пример #2
0
 private Task <IdMessage> ProcessIdEvents(IdMessage msg)
 {
     return(Task.Run(() =>
     {
         var ret = msg.DeepCopy();
         if (ret == null)
         {
             return msg;
         }
         foreach (var i in Plugins)
         {
             ret = i.IdEventUpdateDestructive(ret, PluginMonitoringToken) ?? ret;
         }
         return ret;
     }));
 }
Пример #3
0
 private Task<IdMessage> ProcessIdEvents(IdMessage msg)
 {
     return Task.Run(() =>
     {
         var ret = msg.DeepCopy();
         if (ret == null) return msg;
         foreach (var i in Plugins) ret = i.IdEventUpdateDestructive(ret, PluginMonitoringToken) ?? ret;
         return ret;
     });
 }
Пример #4
0
 private async void NotifyIdEventUpdate(IdMessage msg)
 {
     CacheIdEvents(msg);
     await ProcessIdEvents(msg);
     RaisePropertyChanged("IdEvent");
     await Task.Run(() =>
     {
         foreach (var p in Plugins) p.IdEventUpdate(msg.DeepCopy(), PluginMonitoringToken);
     });
 }