Server/Slions/Ear/Manager.cs
changeset 210 83dd86e73448
parent 209 fef4ca058087
child 211 96f8b4dc4300
     1.1 --- a/Server/Slions/Ear/Manager.cs	Fri Jul 22 18:19:49 2016 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,49 +0,0 @@
     1.4 -//
     1.5 -
     1.6 -
     1.7 -using System;
     1.8 -using System.Collections.Generic;
     1.9 -using System.Linq;
    1.10 -using System.Reflection;
    1.11 -using System.Runtime.Serialization;
    1.12 -
    1.13 -namespace Slions.Ear
    1.14 -{
    1.15 -    public static class ReflectiveEnumerator
    1.16 -    {
    1.17 -        static ReflectiveEnumerator() { }
    1.18 -
    1.19 -        public static IEnumerable<T> GetEnumerableOfType<T>() where T : class
    1.20 -        {
    1.21 -            List<T> objects = new List<T>();
    1.22 -            foreach (Type type in
    1.23 -                Assembly.GetAssembly(typeof(T)).GetTypes()
    1.24 -                .Where(myType => myType.IsClass && !myType.IsAbstract && myType.IsSubclassOf(typeof(T))))
    1.25 -            {
    1.26 -                objects.Add((T)Activator.CreateInstance(type));
    1.27 -            }
    1.28 -            //objects.Sort();
    1.29 -            return objects;
    1.30 -        }
    1.31 -    }
    1.32 -
    1.33 -
    1.34 -    [DataContract]
    1.35 -    class Manager
    1.36 -    {
    1.37 -        private IEnumerable<Action> Actions;
    1.38 -        private IEnumerable<Event> Events;
    1.39 -
    1.40 -        public Manager()
    1.41 -        {
    1.42 -            Actions = ReflectiveEnumerator.GetEnumerableOfType<Action>();
    1.43 -            Events = ReflectiveEnumerator.GetEnumerableOfType<Event>();
    1.44 -
    1.45 -            //CollectActions();
    1.46 -            //CollectEvents();
    1.47 -        }
    1.48 -
    1.49 -
    1.50 -
    1.51 -    }
    1.52 -}
    1.53 \ No newline at end of file