Beispiel #1
0
 public CommandsManager(Configuration configuration)
 {
     this.configuration = configuration;
     finder             = new ReflectionFinder(configuration);
     parser             = new ArgumentsParser(finder, configuration);
     loader             = new CommandAttributeLoader(finder);
 }
Beispiel #2
0
 public ArgumentsParser(ReflectionFinder finder, Configuration configuration)
 {
     this.finder = finder;
     if (configuration.allowThreading)
     {
         new Thread(Load).Start();
     }
     else
     {
         Load();
     }
 }
Beispiel #3
0
        public ArgumentsParser(ReflectionFinder finder, NotificationsHandler notificationsHandler, bool allowThreading)
        {
            this.finder = finder;
            this.notificationsHandler = notificationsHandler;

            if (allowThreading)
            {
                new Thread(FindParsers).Start();
            }
            else
            {
                FindParsers();
            }
        }
Beispiel #4
0
 public CommandAttributeLoader(ReflectionFinder finder)
 {
     types = finder.GetUserClassesAndStructs();
 }
Beispiel #5
0
 public CommandAttributeLoader(ReflectionFinder finder, NotificationsHandler notificationsHandler)
 {
     this.notificationsHandler = notificationsHandler;
     types = finder.userClassesAndStructs;
 }