Esempio n. 1
0
        public static void SetTo <T>() where T : IDomainItem
        {
            var type = typeof(T);

            Domains.FirstOrDefault(i => i.GetType() == type)
            .IfNotNull(i =>
            {
                _current = i;
                //execute onChanged when subscribed
                OnChanged.Execute();
            });
        }
Esempio n. 2
0
 public void Add(IDomainItem item)
 {
     Registry.Add(item.Id, item);
 }