Пример #1
0
        public static void RemovePlugin <T>()
        {
            foreach (var item in CommandMap)
            {
                if (typeof(T) != item.Value.GetType())
                {
                    continue;
                }
                CommandMap.Remove(item.Key, out _);
            }

            foreach (var item in ServiceList)
            {
                if (typeof(T) != item.GetType())
                {
                    continue;
                }
                ServiceList.Remove(item);
            }

            foreach (var item in ApplicationList)
            {
                if (typeof(T) != item.GetType())
                {
                    continue;
                }
                ApplicationList.Remove(item);
            }
        }
Пример #2
0
 public override void RemoveCommands(CommandMap map)
 {
     commandMap.Remove(map);
 }