Beispiel #1
0
 /// <summary>
 /// List the functionalities of the Diagnostic tool
 /// </summary>
 private static void WriteUsage()
 {
     Log4NetSimulatorCommand.WriteUsage();
     WindowsEventLogSimulatorCommand.WriteUsage();
     DirectoryWatcherCommand.WriteUsage();
     ConfigValidatorCommand.WriteUsage();
     RecordParserValidatorCommand.WriteUsage();
     PackageVersionValidatorCommand.WriteUsage();
 }
        /// <summary>
        /// List the functionalities of the Diagnostic tool
        /// </summary>
        private static void WriteUsage()
        {
            Log4NetSimulatorCommand.WriteUsage();
            if (OperatingSystem.IsWindows())
            {
                WindowsEventLogSimulatorCommand.WriteUsage();
            }

            DirectoryWatcherCommand.WriteUsage();
            ConfigValidatorCommand.WriteUsage();
            RecordParserValidatorCommand.WriteUsage();
            PackageVersionValidatorCommand.WriteUsage();
        }
Beispiel #3
0
        private static void WriteUsage()
        {
            List <ICommand> commands = new List <ICommand>();
            ICommand        log4NetSimulatorCommand         = new Log4NetSimulatorCommand();
            ICommand        windowsEventLogSimulatorCommand = new WindowsEventLogSimulatorCommand();
            ICommand        directoryWatcherCommand         = new DirectoryWatcherCommand();
            ICommand        configFileValidatorCommand      = new ConfigValidatorCommand();
            ICommand        recordParserValidatorCommand    = new RecordParserValidatorCommand();
            ICommand        packageVersionValidatorCommand  = new PackageVersionValidatorCommand();

            commands.Add(log4NetSimulatorCommand);
            commands.Add(windowsEventLogSimulatorCommand);
            commands.Add(directoryWatcherCommand);
            commands.Add(configFileValidatorCommand);
            commands.Add(recordParserValidatorCommand);
            commands.Add(packageVersionValidatorCommand);

            foreach (ICommand command in commands)
            {
                command.WriteUsage();
            }
        }