예제 #1
0
 public void Execute()
 {
     if (Key != null && Cach.ContainsKey(Key))
     {
         Cach.Remove(Key);
         CashModelActuality.Remove(Key);
     }
 }
예제 #2
0
            public void Execute()
            {
                var cach = CashModelActuality.FirstOrDefault(x => x.Value == ModelId);

                while (cach.Key != null)
                {
                    Cach.Remove(cach.Key);
                    CashModelActuality.Remove(cach.Key);
                    cach = CashModelActuality.FirstOrDefault(x => x.Value == ModelId);
                }
            }
예제 #3
0
            public void Execute()
            {
                if (ViewModel != null)
                {
                    if (Cach.ContainsKey(ViewModel.CachKey))
                    {
                        Cach.Remove(ViewModel.CachKey);
                        CashModelActuality.Remove(ViewModel.CachKey);
                    }

                    Cach.Add(ViewModel.CachKey, ViewModel);
                    CashModelActuality.Add(ViewModel.CachKey, ViewModel.RelativeModelId);
                }
            }