Beispiel #1
0
        static void Main(string[] args)
        {
            var consoleProgram = new OptionsProgram()
            {
                Options = new ProgramOptions
                {
                    ExitOption = "exit"
                }
            };

            consoleProgram.Tasks.AddRange(ConfigHelper.FindFromAssemblies(Assembly.GetEntryAssembly()));

            consoleProgram.StartAsync().Wait();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            var consoleProgram = new OptionsProgram()
            {
                Options = new ProgramOptions
                {
                    ExitOption = "exit"
                }
            };

            var assemblies = ReflectionHelper.GetAllAssemblies(searchPattern: "TFW.Docs.*.dll").ToArray();

            consoleProgram.Tasks.AddRange(ConsoleTaskHelper.FindFromAssemblies(assemblies));

            consoleProgram.TaskError += ConsoleProgram_TaskError;

            consoleProgram.StartAsync().Wait();
        }