예제 #1
0
        public override bool Execute()
        {
            Log.LogMessage(LoggingImportance, "Starting MTT");
            var result = convertService.Execute();

            Log.LogMessage(LoggingImportance, "Finished MTT");
            return(result);
        }
예제 #2
0
        public static void StartService(string[] args)
        {
            var convertService = new ConvertService((logString, logArgs) => Console.WriteLine(logString, logArgs))
            {
                WorkingDirectory = args[0],
                ConvertDirectory = args[1]
            };

            convertService.Execute();
        }
예제 #3
0
        public static void StartService(string[] args, PropertyStyle propertyStyle = PropertyStyle.CamelCase)
        {
            var convertService = new ConvertService((logString, logArgs) => Console.WriteLine(logString, logArgs))
            {
                WorkingDirectory = args[0],
                ConvertDirectory = args[1],
                PropertyStyle    = propertyStyle
            };

            convertService.Execute();
        }
예제 #4
0
        public override bool Execute()
        {
            Log.LogMessage(LoggingImportance, "Starting MTT");

            convertService.AutoGeneratedTag = AutoGeneratedTag;
            convertService.ConvertDirectory = ConvertDirectory;
            convertService.WorkingDirectory = WorkingDirectory;

            var result = convertService.Execute();

            Log.LogMessage(LoggingImportance, "Finished MTT");
            return(result);
        }
예제 #5
0
        /// <summary>
        /// Defines the entry point of the application.
        /// </summary>
        /// <param name="args">The arguments.</param>
        static void Main(string[] args)
        {
            if (args.Length != 2)
            {
                Console.WriteLine("Arguments should contain the ConvertDirectory and the WorkingDirectory");
                Console.ReadLine();
                return;
            }

            var convertService = new ConvertService((logString, logArgs) => Console.WriteLine(logString, logArgs))
            {
                ConvertDirectory = args[0],
                WorkingDirectory = args[1]
            };

            convertService.Execute();

            Console.ReadLine();
        }