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

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