Beispiel #1
0
 private static void HandleMessage(object sender, NotifyCollectionChangedEventArgs e)
 {
     foreach (var msg in e.NewItems)
     {
         var changeEvent = AgreementEvents.Single(x => x.Id.Equals(((Message)msg).EventId));
         var ccs         = CoverCollections.Where(x => x.AgreementId.Equals(changeEvent.AgreementId));
         foreach (var cc in ccs)
         {
             DoCalculations(cc.Id, changeEvent.ValeurDate);
         }
     }
 }
Beispiel #2
0
        public ICollection <CoverCollection> GetCoverCollections(int valeur)
        {
            var result = CoverCollections.Where(x => x.Get(valeur) != null);

            return(result.ToList());
        }